This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hello, Here is a patch to add support target Z80 to the linker. The linker for Z80 produces a cp/m binary (load and execute at 0x100) if LD_FLAG is empty, and a coff-z80 file otherwise. Arnold Metselaar ChangeLog: * Makefile.am: Add support for Z80 * Makefile.in: Regenerated * configure.tgt: Add z80-*-coff * emulparams/z80.sh: New file. * emultempl/z80.em: New file. * scripttempl/z80.sc New file.
Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/ld/Makefile.am,v
retrieving revision 1.192
diff -u -p -r1.192 Makefile.am
--- Makefile.am 30 Sep 2005 18:59:46 -0000 1.192
+++ Makefile.am 21 Oct 2005 18:59:12 -0000
@@ -372,7 +372,8 @@ ALL_EMULATIONS = \
ew65.o \
ez8001.o \
eelf32frvfd.o \
- ez8002.o
+ ez8002.o \
+ ez80.o
ALL_64_EMULATIONS = \
eelf64_aix.o \
@@ -1543,6 +1544,9 @@ ez8001.c: $(srcdir)/emulparams/z8001.sh
ez8002.c: $(srcdir)/emulparams/z8002.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
${GENSCRIPTS} z8002 "$(tdir_z8002)"
+ez80.c: $(srcdir)/emulparams/z80.sh \
+ $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/z80.em \
+ $(srcdir)/scripttempl/z80.sc ${GEN_DEPENDS} ${GENSCRIPTS} z80 "$(tdir_z80)"
eelf32frvfd.c: $(srcdir)/emulparams/elf32frvfd.sh \
$(srcdir)/emulparams/elf32frv.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/ld/Makefile.in,v
retrieving revision 1.206
diff -u -p -r1.206 Makefile.in
--- Makefile.in 30 Sep 2005 18:59:46 -0000 1.206
+++ Makefile.in 21 Oct 2005 18:59:16 -0000
@@ -595,7 +595,8 @@ ALL_EMULATIONS = \
ew65.o \
ez8001.o \
eelf32frvfd.o \
- ez8002.o
+ ez8002.o \
+ ez80.o
ALL_64_EMULATIONS = \
eelf64_aix.o \
@@ -2347,6 +2348,9 @@ ez8001.c: $(srcdir)/emulparams/z8001.sh
ez8002.c: $(srcdir)/emulparams/z8002.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
${GENSCRIPTS} z8002 "$(tdir_z8002)"
+ez80.c: $(srcdir)/emulparams/z80.sh \
+ $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/z80.em \
+ $(srcdir)/scripttempl/z80.sc ${GEN_DEPENDS} ${GENSCRIPTS} z80 "$(tdir_z80)"
eelf32frvfd.c: $(srcdir)/emulparams/elf32frvfd.sh \
$(srcdir)/emulparams/elf32frv.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.178
diff -u -p -r1.178 configure.tgt
--- configure.tgt 30 Sep 2005 15:23:14 -0000 1.178
+++ configure.tgt 21 Oct 2005 18:59:29 -0000
@@ -555,6 +555,8 @@ xstormy16-*-*) targ_emul=elf32xstormy16
;;
xtensa-*-*) targ_emul=elf32xtensa
;;
+z80-*-coff) targ_emul=z80
+ ;;
z8k-*-coff) targ_emul=z8002; targ_extra_emuls=z8001
;;
*-*-ieee*) targ_emul=vanilla
Attachment:
addz80.ld.tgz
Description: application/tgz
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |