From cdf7137776a86fca4f62f9add8316032c580db14 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 14 Jul 1994 19:20:53 +0000 Subject: [PATCH] ns32k port from Ian Dall --- ld/ChangeLog | 18 ++++++++++++++++++ ld/Makefile.in | 30 ++++++++++++++++++++++-------- ld/config/netbsd532.mt | 2 ++ ld/config/pc532mach.mt | 2 ++ ld/configure.in | 7 +++++-- ld/emulparams/netbsd532.sh | 7 +++++++ ld/emulparams/pc532machaout.sh | 7 +++++++ 7 files changed, 63 insertions(+), 10 deletions(-) create mode 100644 ld/config/netbsd532.mt create mode 100644 ld/config/pc532mach.mt create mode 100644 ld/emulparams/netbsd532.sh create mode 100644 ld/emulparams/pc532machaout.sh diff --git a/ld/ChangeLog b/ld/ChangeLog index 1fee7b1daad..6d766e04211 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,21 @@ +Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au) + + * emulparams/pc532machaout.sh: New file. Pc532 mach script + parameters. + + * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters. + + * config/pc532mach.mt: New file. Pc532 mach target support. + + * config/pc532mach.mh: New file. Pc532 mach host support. + + * config/netbsd532.mt: New file. Netbsd 532 target support. + + * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support. + + * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c + dependency. + Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use diff --git a/ld/Makefile.in b/ld/Makefile.in index ace304a6e51..e04197165c1 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -179,17 +179,13 @@ ALL_EMULATIONS = elnk960.o esun3.o ei386aout.o ego32.o evsta.o \ eh8500b.o eh8500s.o eh8500c.o eh8500m.o \ ehppaelf.o emipsidtl.o esh.o eelf_i386.o ealpha.o \ ei386lynx.o em68klynx.o esparclynx.o ecoff_sparc.o \ - eelf32ppc.o ei386go32.o em68kaout.o \ - $(OTHER_EMULATIONS) - -# This is now set by configure.in. -#EMULATION_OFILES = ${ALL_EMULATIONS} + eelf32ppc.o ei386go32.o em68kaout.o ei386linux.o \ + eelf32_sparc.o eelf64_sparc.o CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \ ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \ mri.c - HFILES = config.h ld.h ldctor.h ldemul.h ldexp.h ldfile.h \ ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \ ldwrite.h mri.h @@ -392,6 +388,23 @@ eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \ em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} ${GENSCRIPTS} m68kaout +ei386linux.c: $(srcdir)/emulparams/i386linux.sh \ + $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} + ${GENSCRIPTS} i386linux +eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} elf32_sparc +eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \ + $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} elf64_sparc + +epc532machaout.c: $(srcdir)/emulparams/pc532machaout.sh \ + $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} + ${GENSCRIPTS} pc532machaout + +enetbsd532.c: $(srcdir)/emulparams/netbsd532.sh \ + $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} + ${GENSCRIPTS} netbsd532 $(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY) $(CC) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(EXTRALIBS) @@ -775,7 +788,8 @@ ldctor.o : ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ ldgram.h ldmain.h ldctor.h ldemul.o : ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \ - config.h ld.h ldemul.h ldmisc.h ldfile.h ldmain.h ldemul-list.h + config.h ld.h ldemul.h ldmisc.h ldexp.h ldlang.h ldfile.h \ + ldmain.h ldemul-list.h ldexp.o : ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \ $(INCDIR)/bfdlink.h ld.h ldmain.h ldmisc.h ldexp.h \ @@ -783,7 +797,7 @@ ldexp.o : ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ ldfile.o : ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \ ld.h ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \ - ldlex.h + ldlex.h ldemul.h ldlang.o : ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \ $(INCDIR)/libiberty.h $(INCDIR)/bfdlink.h ld.h ldmain.h \ diff --git a/ld/config/netbsd532.mt b/ld/config/netbsd532.mt new file mode 100644 index 00000000000..92332ecb8c9 --- /dev/null +++ b/ld/config/netbsd532.mt @@ -0,0 +1,2 @@ +EMUL=netbsd532 +OTHER_EMULATIONS=enetbsd532.o diff --git a/ld/config/pc532mach.mt b/ld/config/pc532mach.mt new file mode 100644 index 00000000000..bc21e1177ec --- /dev/null +++ b/ld/config/pc532mach.mt @@ -0,0 +1,2 @@ +EMUL=pc532machaout +OTHER_EMULATIONS=epc532machaout.o diff --git a/ld/configure.in b/ld/configure.in index 51c8cf38e42..7c325400a71 100644 --- a/ld/configure.in +++ b/ld/configure.in @@ -20,8 +20,8 @@ fi # per-target: # Canonicalize the secondary target names. -if [ -n "$with_targets" ]; then - for targ in `echo $with_targets | sed 's/,/ /g'` +if [ -n "$enable_targets" ]; then + for targ in `echo $enable_targets | sed 's/,/ /g'` do result=`$configsub $targ 2>/dev/null` if [ -n "$result" ]; then @@ -106,6 +106,8 @@ case "${targ}" in alpha-*-osf*) ld_target=alpha ;; alpha-*-netware*) ld_target=alpha ;; z8k-*-sim | z8k-*-coff) ld_target=z8ksim ;; + ns32k-pc532-mach) ld_target=pc532mach ;; + ns32k-pc532-netbsd*) ld_target=netbsd532 ;; powerpc-*-elf*) ld_target=ppc-elf32 ;; powerpc-*-netware*) ld_target=ppc-elf32 ;; *-*-aout) ld_target=${target_cpu}-${target_vendor} ;; @@ -147,6 +149,7 @@ if [ x${all_targets} = xfalse ]; then # The emulations in all the configured targets. tb=`sed -n ' s/EMUL[ ]*=[ ]*\([^ ]*\)/e\1.o/p + s/EMUL_EXTRA.*=[ ]*\([^ ]*\)/e\1.o/p ' $allfrags` # uniq the list. f="" diff --git a/ld/emulparams/netbsd532.sh b/ld/emulparams/netbsd532.sh new file mode 100644 index 00000000000..c0cd1c9ff44 --- /dev/null +++ b/ld/emulparams/netbsd532.sh @@ -0,0 +1,7 @@ +EMULATION_NAME=netbsd532 +SCRIPT_NAME=aout +OUTPUT_FORMAT="a.out-netbsd-532" +PAGE_SIZE=0x1000 +TEXT_START_ADDR=0x1020 +NONPAGED_TEXT_START_ADDR=0x1000 +ARCH=ns32k diff --git a/ld/emulparams/pc532machaout.sh b/ld/emulparams/pc532machaout.sh new file mode 100644 index 00000000000..caa8081e0d1 --- /dev/null +++ b/ld/emulparams/pc532machaout.sh @@ -0,0 +1,7 @@ +EMULATION_NAME=pc532machaout +SCRIPT_NAME=aout +OUTPUT_FORMAT="a.out-pc532-mach" +PAGE_SIZE=0x1000 +TEXT_START_ADDR="0x10020" +NONPAGED_TEXT_START_ADDR=0x10000 +ARCH=ns32k -- 2.30.2