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