Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | cat <<EOF |
2 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") | |
3 | OUTPUT_ARCH(${ARCH}) | |
4 | ||
5 | ${STACKZERO+${RELOCATING+${STACKZERO}}} | |
6 | ${RELOCATING+PROVIDE (__stack = 0);} | |
7 | SECTIONS | |
8 | { | |
9 | ${RELOCATING+. = ${TEXT_START_ADDR};} | |
10 | .text : | |
11 | { | |
12 | CREATE_OBJECT_SYMBOLS | |
13 | *(.text) | |
14 | ${RELOCATING+_etext = .;} | |
15 | ${RELOCATING+__etext = .;} | |
16 | ${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}} | |
17 | } | |
18 | ${RELOCATING+. = ${DATA_ALIGNMENT};} | |
19 | .data : | |
20 | { | |
21 | *(.data) | |
22 | ${RELOCATING+_edata = .;} | |
23 | ${RELOCATING+__edata = .;} | |
24 | } | |
25 | .bss : | |
26 | { | |
27 | ${RELOCATING+ __bss_start = .}; | |
28 | *(.bss) | |
29 | *(COMMON) | |
30 | ${RELOCATING+_end = ALIGN(4) }; | |
31 | ${RELOCATING+__end = ALIGN(4) }; | |
32 | } | |
33 | } | |
34 | EOF |