Commit | Line | Data |
---|---|---|
3c9b82ba NC |
1 | if [ x${LD_FLAG} = x ] |
2 | then | |
3 | cat << EOF | |
4 | /* Create a cp/m executable; load and execute at 0x100. */ | |
5 | OUTPUT_FORMAT("binary") | |
6 | . = 0x100; | |
7 | __Ltext = .; | |
8 | ENTRY (__Ltext) | |
9 | EOF | |
10 | else | |
11 | echo "OUTPUT_FORMAT(\"${OUTPUT_FORMAT}\")" | |
12 | fi | |
13 | cat <<EOF | |
14 | OUTPUT_ARCH("${OUTPUT_ARCH}") | |
15 | SECTIONS | |
16 | { | |
17 | .text : { | |
18 | *(.text) | |
19 | *(text) | |
20 | ${RELOCATING+ __Htext = .;} | |
21 | } | |
22 | .data : { | |
23 | ${RELOCATING+ __Ldata = .;} | |
24 | *(.data) | |
25 | *(data) | |
26 | ${RELOCATING+ __Hdata = .;} | |
27 | } | |
28 | .bss : { | |
29 | ${RELOCATING+ __Lbss = .;} | |
30 | *(.bss) | |
31 | *(bss) | |
32 | ${RELOCATING+ __Hbss = .;} | |
33 | } | |
34 | } | |
35 | EOF |