Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | cat <<EOF |
2 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") | |
3 | OUTPUT_ARCH("${OUTPUT_ARCH}") | |
4 | ENTRY(_start) | |
5 | ||
6 | SECTIONS | |
7 | { | |
8 | .text ${BIG+ ${RELOCATING+ 0x0000000}} : { | |
9 | *(.text) | |
10 | *(.strings) | |
11 | *(.rdata) | |
12 | } | |
13 | ||
14 | .ctors ${BIG+ ${RELOCATING+ 0x2000000}} : | |
15 | { | |
16 | ${RELOCATING+ ___ctors = . ; } | |
17 | *(.ctors); | |
18 | ${RELOCATING+ ___ctors_end = . ; } | |
19 | ___dtors = . ; | |
20 | *(.dtors); | |
21 | ${RELOCATING+ ___dtors_end = . ; } | |
22 | } | |
23 | ||
24 | .data ${BIG+ ${RELOCATING+ 0x3000000}} : { | |
25 | *(.data) | |
26 | } | |
27 | ||
28 | .bss ${BIG+ ${RELOCATING+ 0x4000000}} : | |
29 | { | |
30 | ${RELOCATING+ __start_bss = . ; } | |
31 | *(.bss); | |
32 | *(COMMON); | |
33 | ${RELOCATING+ __end_bss = . ; } | |
34 | } | |
35 | ||
36 | .heap ${BIG+ ${RELOCATING+ 0x5000000}} : { | |
37 | ${RELOCATING+ __start_heap = . ; } | |
38 | ${RELOCATING+ . = . + 20k ; } | |
39 | ${RELOCATING+ __end_heap = . ; } | |
40 | } | |
41 | ||
42 | .stack ${RELOCATING+ 0xf000 } : | |
43 | { | |
44 | ${RELOCATING+ _stack = . ; } | |
45 | *(.stack) | |
46 | ${RELOCATING+ __stack_top = . ; } | |
47 | } | |
48 | ||
49 | } | |
50 | EOF | |
51 | ||
52 | ||
53 | ||
54 |