]>
Commit | Line | Data |
---|---|---|
8ddef552 DM |
1 | cat <<EOF |
2 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") | |
66a61efd | 3 | OUTPUT_ARCH("${OUTPUT_ARCH}") |
ea1c0ad2 | 4 | ENTRY(_start) |
8ddef552 DM |
5 | |
6 | SECTIONS | |
7 | { | |
66a61efd | 8 | .text ${BIG+ ${RELOCATING+ 0x0000000}} : { |
8ddef552 DM |
9 | *(.text) |
10 | *(.strings) | |
ea1c0ad2 SC |
11 | *(.rdata) |
12 | } | |
13 | ||
66a61efd | 14 | .ctors ${BIG+ ${RELOCATING+ 0x2000000}} : |
ea1c0ad2 SC |
15 | { |
16 | ${RELOCATING+ ___ctors = . ; } | |
17 | *(.ctors); | |
18 | ${RELOCATING+ ___ctors_end = . ; } | |
19 | ___dtors = . ; | |
20 | *(.dtors); | |
21 | ${RELOCATING+ ___dtors_end = . ; } | |
22 | } | |
23 | ||
66a61efd | 24 | .data ${BIG+ ${RELOCATING+ 0x3000000}} : { |
8ddef552 | 25 | *(.data) |
ea1c0ad2 SC |
26 | } |
27 | ||
66a61efd | 28 | .bss ${BIG+ ${RELOCATING+ 0x4000000}} : |
ea1c0ad2 SC |
29 | { |
30 | ${RELOCATING+ __start_bss = . ; } | |
31 | *(.bss); | |
32 | *(COMMON); | |
33 | ${RELOCATING+ __end_bss = . ; } | |
34 | } | |
35 | ||
66a61efd | 36 | .heap ${BIG+ ${RELOCATING+ 0x5000000}} : { |
ea1c0ad2 SC |
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 | } | |
8ddef552 DM |
48 | |
49 | } | |
50 | EOF | |
51 | ||
52 | ||
53 | ||
54 |