* Makefile.def (configure-opcodes): Depend on configure-libiberty.
[binutils.git] / ld / scripttempl / z80.sc
blob8c004da83c57fa80f137914a8bcbfbb1b85d06d8
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}\")"
13 cat <<EOF
14 OUTPUT_ARCH("${OUTPUT_ARCH}")
15 SECTIONS
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         }
35 EOF