]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/scripttempl/z80.sc
Add support for the Z80 processor family
[thirdparty/binutils-gdb.git] / ld / scripttempl / z80.sc
CommitLineData
3c9b82ba
NC
1if [ x${LD_FLAG} = x ]
2then
3cat << EOF
4/* Create a cp/m executable; load and execute at 0x100. */
5OUTPUT_FORMAT("binary")
6. = 0x100;
7__Ltext = .;
8ENTRY (__Ltext)
9EOF
10else
11 echo "OUTPUT_FORMAT(\"${OUTPUT_FORMAT}\")"
12fi
13cat <<EOF
14OUTPUT_ARCH("${OUTPUT_ARCH}")
15SECTIONS
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}
35EOF