Add support for the Z80 processor family
[deliverable/binutils-gdb.git] / ld / scripttempl / z80.sc
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
This page took 0.030835 seconds and 4 git commands to generate.