Automatic date update in version.in
[deliverable/binutils-gdb.git] / ld / scripttempl / z80.sc
CommitLineData
82704155 1# Copyright (C) 2014-2019 Free Software Foundation, Inc.
6c19b93b 2#
985743c7
NC
3# Copying and distribution of this file, with or without modification,
4# are permitted in any medium without royalty provided the copyright
5# notice and this notice are preserved.
6
3c9b82ba
NC
7if [ x${LD_FLAG} = x ]
8then
9cat << EOF
82704155 10/* Copyright (C) 2014-2019 Free Software Foundation, Inc.
985743c7
NC
11
12 Copying and distribution of this script, with or without modification,
13 are permitted in any medium without royalty provided the copyright
14 notice and this notice are preserved. */
15
3c9b82ba
NC
16/* Create a cp/m executable; load and execute at 0x100. */
17OUTPUT_FORMAT("binary")
18. = 0x100;
19__Ltext = .;
20ENTRY (__Ltext)
21EOF
6c19b93b 22else
3c9b82ba
NC
23 echo "OUTPUT_FORMAT(\"${OUTPUT_FORMAT}\")"
24fi
25cat <<EOF
26OUTPUT_ARCH("${OUTPUT_ARCH}")
27SECTIONS
28{
29.text : {
30 *(.text)
31 *(text)
32 ${RELOCATING+ __Htext = .;}
33 }
34.data : {
35 ${RELOCATING+ __Ldata = .;}
36 *(.data)
37 *(data)
38 ${RELOCATING+ __Hdata = .;}
39 }
40.bss : {
41 ${RELOCATING+ __Lbss = .;}
42 *(.bss)
43 *(bss)
44 ${RELOCATING+ __Hbss = .;}
45 }
46}
47EOF
This page took 0.764963 seconds and 4 git commands to generate.