forked from cahirwpz/FreeRTOS-Amiga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
amiga.ld
66 lines (61 loc) · 1.28 KB
/
amiga.ld
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* Linker scripts are documented at:
* https://sourceware.org/binutils/docs/ld/Scripts.html */
OUTPUT_ARCH(m68k)
ENTRY(_start)
PHDRS
{
text PT_LOAD FLAGS(5); /* read-only, executable */
data PT_LOAD FLAGS(6); /* read-write */
data_chip PT_LOAD FLAGS(6); /* read-write */
bss PT_LOAD FLAGS(6); /* read-write */
bss_chip PT_LOAD FLAGS(6); /* read-write */
}
PROVIDE(ciaa = 0xbfe001);
PROVIDE(ciab = 0xbfd000);
PROVIDE(msm6242b = 0xdc0000);
PROVIDE(custom = 0xdff000);
SECTIONS
{
.text 0: ALIGN(4) SUBALIGN(2)
{
PROVIDE(_text = .);
*(.text .text.*)
*(.rodata .rodata.*)
. = ALIGN(4);
PROVIDE(_etext = .);
} :text
.data : ALIGN(4)
{
PROVIDE(_data = .);
*(.data .data.*)
. = ALIGN(4);
PROVIDE(_edata = .);
} :data
.bss : ALIGN(4)
{
PROVIDE(_bss = .);
*(.bss .bss.*)
*(COMMON)
. = ALIGN(4);
PROVIDE(_ebss = .);
} :bss
.data.MEMF_CHIP : ALIGN(4)
{
PROVIDE(_datachip = .);
*(.datachip .datachip.*)
. = ALIGN(4);
PROVIDE(_edatachip = .);
} :data_chip
.bss.MEMF_CHIP (NOLOAD) : ALIGN(4)
{
PROVIDE(_bsschip = .);
*(.bsschip .bsschip.*)
. = ALIGN(4);
PROVIDE(_ebsschip = .);
} :bss_chip
/* Sections to be discarded */
/DISCARD/ :
{
*(.comment)
}
}