Patch from Roland McGrath <roland@baalperazim.frob.com>
authorNick Clifton <nickc@redhat.com>
Tue, 24 Aug 1999 15:17:23 +0000 (15:17 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 24 Aug 1999 15:17:23 +0000 (15:17 +0000)
Add arm-netbsd target.

ld/ChangeLog
ld/Makefile.am
ld/Makefile.in
ld/configure.tgt
ld/emulparams/armnbsd.sh [new file with mode: 0644]

index e26eb46e5d4ddc4258a250f7c177050cb818dae6..f451e96cf589f89f83d6d2f716f4f094ab0fda6f 100644 (file)
@@ -1,3 +1,13 @@
+1999-08-24  Nick Clifton  <nickc@cygnus.com>
+
+       From a patch submitted by Roland McGrath  <roland@baalperazim.frob.com>
+
+       * 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  <nickc@cygnus.com>
 
        * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Define.
index 3016a79e0112b6adeefaf84ac831af589cdc0bbb..ae340fcd5e96a6376c795bd551d7ade92555d93f 100644 (file)
@@ -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)"
index eaf568ebee61dca9526e92de764ea5cf20180e31..62a42cd6ce4da71e86ccdd3227c7860521d70d7f 100644 (file)
@@ -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)"
index ddf2445c831c6cd3fac5bf30683cc365390abc32..05a9152b89df2f70d63188942149b2ee709940a9 100644 (file)
@@ -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 (file)
index 0000000..fc27791
--- /dev/null
@@ -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