Commit | Line | Data |
---|---|---|
367428b5 SC |
1 | cat <<EOF |
2 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") | |
3 | OUTPUT_ARCH(${ARCH}) | |
4 | ||
5 | /* Code and data, both 64k */ | |
6 | ||
7 | SECTIONS | |
8 | { | |
9 | .text ${RELOCATING+ 0x10000 } : | |
10 | { | |
11 | *(.text) | |
12 | *(.rdata); | |
13 | *(.strings) | |
14 | ___ctors = . ; | |
15 | *(.ctors) | |
16 | ___ctors_end = . ; | |
17 | ___dtors = . ; | |
18 | *(.dtors) | |
19 | ___dtors_end = . ; | |
20 | ${RELOCATING+ _etext = . ; } | |
21 | } | |
22 | ||
23 | ||
24 | .data ${RELOCATING+ 0x20000 } : | |
25 | { | |
26 | *(.data) | |
27 | ${RELOCATING+ _edata = . ; } | |
28 | } | |
29 | ||
30 | ||
31 | .bss ${RELOCATING+ .} : | |
32 | { | |
33 | ${RELOCATING+ __start_bss = . ; } | |
34 | *(.bss) | |
35 | *(COMMON) | |
36 | ${RELOCATING+ _end = . ; } | |
37 | } | |
38 | ||
39 | .stack ${RELOCATING+ 0x2fff0} : | |
40 | { | |
41 | ${RELOCATING+ _stack = . ; } | |
42 | *(.stack) | |
43 | } | |
44 | ||
45 | .stab . (NOLOAD) : | |
46 | { | |
47 | [ .stab ] | |
48 | } | |
49 | .stabstr . (NOLOAD) : | |
50 | { | |
51 | [ .stabstr ] | |
52 | } | |
53 | } | |
54 | EOF | |
55 | ||
56 | ||
57 | ||
58 |