From: Nick Clifton Date: Tue, 24 Aug 1999 15:17:23 +0000 (+0000) Subject: Patch from Roland McGrath X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8959586aab14570435e281513f310117fa6c59a8;p=binutils-gdb.git Patch from Roland McGrath Add arm-netbsd target. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index e26eb46e5d4..f451e96cf58 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,13 @@ +1999-08-24 Nick Clifton + + From a patch submitted by Roland McGrath + + * configure.tgt (arm-*-netbsd*): New target. + * Makefile.am (ALL_EMULATIONS): Add earmnbsd.o. + (earmnbsd.c): New rule with deps. + * Makefile.on: Regenerate. + * emulparams/armnbsd.sh: New file. + 1999-08-23 Nick Clifton * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Define. diff --git a/ld/Makefile.am b/ld/Makefile.am index 3016a79e011..ae340fcd5e9 100644 --- a/ld/Makefile.am +++ b/ld/Makefile.am @@ -108,6 +108,7 @@ ALL_EMULATIONS = \ earmaoutb.o \ earmaoutl.o \ earmcoff.o \ + earmnbsd.o \ earmpe.o \ ecoff_sparc.o \ ed10velf.o \ @@ -305,6 +306,9 @@ earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \ earmcoff.c: $(srcdir)/emulparams/armcoff.sh \ $(srcdir)/emultempl/armcoff.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS} ${GENSCRIPTS} armcoff "$(tdir_armcoff)" +earmnbsd.c: $(srcdir)/emulparams/armnbsd.sh \ + $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} + ${GENSCRIPTS} armnbsd "$(tdir_armnbsd)" earmpe.c: $(srcdir)/emulparams/armpe.sh \ $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS} ${GENSCRIPTS} armpe "$(tdir_armpe)" diff --git a/ld/Makefile.in b/ld/Makefile.in index eaf568ebee6..62a42cd6ce4 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -213,6 +213,7 @@ ALL_EMULATIONS = \ earmaoutb.o \ earmaoutl.o \ earmcoff.o \ + earmnbsd.o \ earmpe.o \ ecoff_sparc.o \ ed10velf.o \ @@ -1006,6 +1007,9 @@ earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \ earmcoff.c: $(srcdir)/emulparams/armcoff.sh \ $(srcdir)/emultempl/armcoff.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS} ${GENSCRIPTS} armcoff "$(tdir_armcoff)" +earmnbsd.c: $(srcdir)/emulparams/armnbsd.sh \ + $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} + ${GENSCRIPTS} armnbsd "$(tdir_armnbsd)" earmpe.c: $(srcdir)/emulparams/armpe.sh \ $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS} ${GENSCRIPTS} armpe "$(tdir_armpe)" diff --git a/ld/configure.tgt b/ld/configure.tgt index ddf2445c831..05a9152b89d 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -128,6 +128,7 @@ a29k-*-*) targ_emul=a29k ;; arm-*-aout | armel-*-aout) targ_emul=armaoutl ;; armeb-*-aout) targ_emul=armaoutb ;; arm-*-coff) targ_emul=armcoff ;; +arm-*-netbsd*) targ_emul=armnbsd ;; arm-*-elf) targ_emul=armelf ;; arm-*-oabi) targ_emul=armelf_oabi ;; arm*-*-linux-gnu*) targ_emul=armelf_linux; targ_extra_emuls="armelf_linux26 armelf" ;; diff --git a/ld/emulparams/armnbsd.sh b/ld/emulparams/armnbsd.sh new file mode 100644 index 00000000000..fc2779164a0 --- /dev/null +++ b/ld/emulparams/armnbsd.sh @@ -0,0 +1,7 @@ +SCRIPT_NAME=aout +TEXT_START_ADDR=0x1020 +OUTPUT_FORMAT="a.out-arm-netbsd" +TARGET_PAGE_SIZE=0x1000 +ARCH=arm +EXECUTABLE_SYMBOLS='__DYNAMIC = 0;' +NONPAGED_TEXT_START_ADDR=0x1000