ns32k port from Ian Dall

This commit is contained in:
Ken Raeburn 1994-07-14 19:20:53 +00:00
parent 259e35d4e9
commit cdf7137776
7 changed files with 63 additions and 10 deletions

View file

@ -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

View file

@ -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 \

2
ld/config/netbsd532.mt Normal file
View file

@ -0,0 +1,2 @@
EMUL=netbsd532
OTHER_EMULATIONS=enetbsd532.o

2
ld/config/pc532mach.mt Normal file
View file

@ -0,0 +1,2 @@
EMUL=pc532machaout
OTHER_EMULATIONS=epc532machaout.o

View file

@ -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=""

View file

@ -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

View file

@ -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