From 8959586aab14570435e281513f310117fa6c59a8 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 24 Aug 1999 15:17:23 +0000 Subject: [PATCH] Patch from Roland McGrath Add arm-netbsd target. --- ld/ChangeLog | 10 ++++++++++ ld/Makefile.am | 4 ++++ ld/Makefile.in | 4 ++++ ld/configure.tgt | 1 + ld/emulparams/armnbsd.sh | 7 +++++++ 5 files changed, 26 insertions(+) create mode 100644 ld/emulparams/armnbsd.sh diff --git a/ld/ChangeLog b/ld/ChangeLog index e26eb46..f451e96 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 3016a79..ae340fc 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 eaf568e..62a42cd 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 ddf2445..05a9152 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 0000000..fc27791 --- /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 -- 2.7.4