From 3695c2997d939be2c281d498c1b232805b4cb09b Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 20 Dec 2001 03:19:43 +0000 Subject: [PATCH] * configure.tgt (arm-*-netbsdelf*): Add target. (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls. * emulparams/armelf_nbsd.sh: Added. * Makefile.am: Add rules for earmelf_nbsd. * Makefile.in: Regenerate. --- ld/ChangeLog | 8 ++++++++ ld/Makefile.am | 6 ++++++ ld/Makefile.in | 6 ++++++ ld/configure.tgt | 5 ++++- ld/emulparams/armelf_nbsd.sh | 6 ++++++ 5 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 ld/emulparams/armelf_nbsd.sh diff --git a/ld/ChangeLog b/ld/ChangeLog index 8646432ae4c..aa3951621cf 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2001-12-20 Jason Thorpe + + * configure.tgt (arm-*-netbsdelf*): Add target. + (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls. + * emulparams/armelf_nbsd.sh: Added. + * Makefile.am: Add rules for earmelf_nbsd. + * Makefile.in: Regenerate. + 2001-12-19 Andreas Jaeger , Susanne Oberhauser diff --git a/ld/Makefile.am b/ld/Makefile.am index 4f1a06a3e7b..e06b682c4a1 100644 --- a/ld/Makefile.am +++ b/ld/Makefile.am @@ -118,6 +118,7 @@ ALL_EMULATIONS = \ earmcoff.o \ earmelf.o \ earmelf_linux.o \ + earmelf_nbsd.o \ earmelf_oabi.o \ earmnbsd.o \ earmpe.o \ @@ -359,6 +360,11 @@ earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \ $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \ $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} armelf_linux "$(tdir_armelf_linux)" +earmelf_nbsd.c: $(srcdir)/emulparams/armelf_nbsd.sh \ + $(srcdir)/emulparams/armelf.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \ + $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} armelf_nbsd "$(tdir_armelf_nbsd)" earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS} ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)" diff --git a/ld/Makefile.in b/ld/Makefile.in index 4f93e144790..c4dbbc667b5 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -227,6 +227,7 @@ ALL_EMULATIONS = \ earmcoff.o \ earmelf.o \ earmelf_linux.o \ + earmelf_nbsd.o \ earmelf_oabi.o \ earmnbsd.o \ earmpe.o \ @@ -1080,6 +1081,11 @@ earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \ $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \ $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} armelf_linux "$(tdir_armelf_linux)" +earmelf_nbsd.c: $(srcdir)/emulparams/armelf_nbsd.sh \ + $(srcdir)/emulparams/armelf.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \ + $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} armelf_nbsd "$(tdir_armelf_nbsd)" earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS} ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)" diff --git a/ld/configure.tgt b/ld/configure.tgt index f24cf72102d..331b332ebbf 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -196,7 +196,10 @@ armeb-*-aout) targ_emul=armaoutb ;; arm-*-coff) targ_emul=armcoff ;; arm-*-vxworks) targ_emul=armcoff ;; arm-*-freebsd*) targ_emul=armelf ;; -arm-*-netbsd*) targ_emul=armnbsd ;; +arm-*-netbsdelf*) targ_emul=armelf_nbsd; + targ_extra_emuls="armelf armnbsd" ;; +arm-*-netbsd*) targ_emul=armnbsd; + targ_extra_emuls="armelf armelf_nbsd" ;; arm-*-openbsd*) targ_emul=armnbsd ;; arm-*-rtems*) targ_emul=armelf ;; arm-*-elf) targ_emul=armelf ;; diff --git a/ld/emulparams/armelf_nbsd.sh b/ld/emulparams/armelf_nbsd.sh new file mode 100644 index 00000000000..571483c69bf --- /dev/null +++ b/ld/emulparams/armelf_nbsd.sh @@ -0,0 +1,6 @@ +. ${srcdir}/emulparams/armelf.sh +MAXPAGESIZE=0x8000 +TEXT_START_ADDR=0x00008000 + +unset STACK_ADDR +unset EMBEDDED -- 2.30.2