diff options
author | Ken Raeburn <raeburn@cygnus> | 1994-07-14 19:20:53 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1994-07-14 19:20:53 +0000 |
commit | cdf7137776a86fca4f62f9add8316032c580db14 (patch) | |
tree | 149e9e411eb950935d7f7d770e0bd7d38e148a0a | |
parent | 259e35d4e9be9544d4606bf842d89afd6848b1b3 (diff) | |
download | gdb-cdf7137776a86fca4f62f9add8316032c580db14.zip gdb-cdf7137776a86fca4f62f9add8316032c580db14.tar.gz gdb-cdf7137776a86fca4f62f9add8316032c580db14.tar.bz2 |
ns32k port from Ian Dall
-rw-r--r-- | ld/ChangeLog | 18 | ||||
-rw-r--r-- | ld/Makefile.in | 30 | ||||
-rw-r--r-- | ld/config/netbsd532.mt | 2 | ||||
-rw-r--r-- | ld/config/pc532mach.mt | 2 | ||||
-rw-r--r-- | ld/configure.in | 7 | ||||
-rw-r--r-- | ld/emulparams/netbsd532.sh | 7 | ||||
-rw-r--r-- | ld/emulparams/pc532machaout.sh | 7 |
7 files changed, 63 insertions, 10 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 1fee7b1..6d766e0 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 ace304a..e041971 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 0000000..92332ec --- /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 0000000..bc21e11 --- /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 51c8cf3..7c32540 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 0000000..c0cd1c9 --- /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 0000000..caa8081 --- /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 |