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