aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1999-08-24 15:17:23 +0000
committerNick Clifton <nickc@redhat.com>1999-08-24 15:17:23 +0000
commit8959586aab14570435e281513f310117fa6c59a8 (patch)
tree79250c8215feffeeef012dd2e337b2906d3ea5ba /ld
parent021e3cc0675840cb1816a3c458f3d6b200309df7 (diff)
downloadgdb-8959586aab14570435e281513f310117fa6c59a8.zip
gdb-8959586aab14570435e281513f310117fa6c59a8.tar.gz
gdb-8959586aab14570435e281513f310117fa6c59a8.tar.bz2
Patch from Roland McGrath <roland@baalperazim.frob.com>
Add arm-netbsd target.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog10
-rw-r--r--ld/Makefile.am4
-rw-r--r--ld/Makefile.in4
-rw-r--r--ld/configure.tgt1
-rw-r--r--ld/emulparams/armnbsd.sh7
5 files changed, 26 insertions, 0 deletions
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 <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.
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