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