aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@netbsd.org>2002-01-08 04:23:02 +0000
committerJason Thorpe <thorpej@netbsd.org>2002-01-08 04:23:02 +0000
commit8d05742ff61cb729d294257e99ec13104e4c1c35 (patch)
treeceda788ea57d569ba5c455c5e1b5bfc97902b8ad /ld
parent34c0bd933de019af43d6c8fe0bb7bdf87442eaa9 (diff)
downloadbinutils-8d05742ff61cb729d294257e99ec13104e4c1c35.zip
binutils-8d05742ff61cb729d294257e99ec13104e4c1c35.tar.gz
binutils-8d05742ff61cb729d294257e99ec13104e4c1c35.tar.bz2
bfd:
* Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo. (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c. (elf32-sh-nbsd.lo): New rule. * Makefile.in: Regenerate. * config.bfd (sh*le-*-netbsdelf*): New target. (sh*-*-netbsdelf*): New target. * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*. (bfd_elf32_shnbsd_vec): New vector. (bfd_elf32_shlnbsd_vec): New vector. * configure: Regenerate. * elf32-sh-nbsd.c: New file. * targets.c: Update copyright years. (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and bfd_elf32_shnbsd_vec. gas: * configure.in (sh*le): Set cpu_type=sh and endian=little. (sh*-*-netbsdelf*): New target. * configure: Regenerate. * tc-sh.h: Update copyright years. (TARGET_FORMAT): Add version for TE_NetBSD. ld: * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o. (eshelf_nbsd.c): New rule. (eshlelf_nbsd.c): New rule. * Makefile.in: Regenerate. * configure.tgt (sh*le-*-netbsdelf*): New target. (sh*-*-netbsdelf*): New target. * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file. * ld/emulparams/shelf_nbsd.sh: New emulation. * ld/emulparams/shlelf_nbsd.sh: New emulation.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog12
-rw-r--r--ld/Makefile.am11
-rw-r--r--ld/Makefile.in11
-rw-r--r--ld/configure.tgt8
-rw-r--r--ld/emulparams/shelf.sh2
-rw-r--r--ld/emulparams/shelf_nbsd.sh15
-rw-r--r--ld/emulparams/shlelf_nbsd.sh3
7 files changed, 61 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index dedd69f..720e83b 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,15 @@
+2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
+
+ * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
+ (eshelf_nbsd.c): New rule.
+ (eshlelf_nbsd.c): New rule.
+ * Makefile.in: Regenerate.
+ * configure.tgt (sh*le-*-netbsdelf*): New target.
+ (sh*-*-netbsdelf*): New target.
+ * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
+ * ld/emulparams/shelf_nbsd.sh: New emulation.
+ * ld/emulparams/shlelf_nbsd.sh: New emulation.
+
2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
* po/es.po: New file: Spanish translation.
diff --git a/ld/Makefile.am b/ld/Makefile.am
index e06b682..329a316 100644
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -237,6 +237,8 @@ ALL_EMULATIONS = \
eshelf.o \
eshelf_linux.o \
eshlelf_linux.o \
+ eshelf_nbsd.o \
+ eshlelf_nbsd.o \
eshl.o \
eshlelf.o \
eshpe.o \
@@ -831,6 +833,15 @@ eshelf_linux.c: $(srcdir)/emulparams/shelf_linux.sh \
eshlelf_linux.c: $(srcdir)/emulparams/shlelf_linux.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} shlelf_linux "$(tdir_shlelf_linux)"
+eshelf_nbsd.c: $(srcdir)/emulparams/shelf_nbsd.sh \
+ $(srcdir)/emulparams/shelf.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} shelf_nbsd "$(tdir_shelf_nbsd)"
+eshlelf_nbsd.c: $(srcdir)/emulparams/shlelf_nbsd.sh \
+ $(srcdir)/emulparams/shelf_nbsd.sh \
+ $(srcdir)/emulparams/shelf.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} shlelf_nbsd "$(tdir_shlelf_nbsd)"
eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
$(srcdir)/emulparams/shelf.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
diff --git a/ld/Makefile.in b/ld/Makefile.in
index c4dbbc6..f409fbc 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -346,6 +346,8 @@ ALL_EMULATIONS = \
eshelf.o \
eshelf_linux.o \
eshlelf_linux.o \
+ eshelf_nbsd.o \
+ eshlelf_nbsd.o \
eshl.o \
eshlelf.o \
eshpe.o \
@@ -1552,6 +1554,15 @@ eshelf_linux.c: $(srcdir)/emulparams/shelf_linux.sh \
eshlelf_linux.c: $(srcdir)/emulparams/shlelf_linux.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} shlelf_linux "$(tdir_shlelf_linux)"
+eshelf_nbsd.c: $(srcdir)/emulparams/shelf_nbsd.sh \
+ $(srcdir)/emulparams/shelf.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} shelf_nbsd "$(tdir_shelf_nbsd)"
+eshlelf_nbsd.c: $(srcdir)/emulparams/shlelf_nbsd.sh \
+ $(srcdir)/emulparams/shelf_nbsd.sh \
+ $(srcdir)/emulparams/shelf.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} shlelf_nbsd "$(tdir_shlelf_nbsd)"
eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
$(srcdir)/emulparams/shelf.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
diff --git a/ld/configure.tgt b/ld/configure.tgt
index 3522d16..8691370 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -256,6 +256,14 @@ sh*eb-*-linux*)
sh*-*-linux*)
targ_emul=shlelf_linux
;;
+sh*le-*-netbsdelf*)
+ targ_emul=shlelf_nbsd
+ targ_extra_emuls=shelf_nbsd
+ ;;
+sh*-*-netbsdelf*)
+ targ_emul=shelf_nbsd
+ targ_extra_emuls=shlelf_nbsd
+ ;;
sh-*-elf* | sh-*-rtemself*)
targ_emul=shelf
targ_extra_emuls="shlelf sh shl"
diff --git a/ld/emulparams/shelf.sh b/ld/emulparams/shelf.sh
index d360022..27b73b6 100644
--- a/ld/emulparams/shelf.sh
+++ b/ld/emulparams/shelf.sh
@@ -1,5 +1,5 @@
# If you change this file, please also look at files which source this one:
-# shlelf.sh
+# shlelf.sh, shelf_nbsd.sh
SCRIPT_NAME=elf
OUTPUT_FORMAT="elf32-sh"
diff --git a/ld/emulparams/shelf_nbsd.sh b/ld/emulparams/shelf_nbsd.sh
new file mode 100644
index 0000000..52d9bcc
--- /dev/null
+++ b/ld/emulparams/shelf_nbsd.sh
@@ -0,0 +1,15 @@
+# If you change this file, please alsolook at files which source this one:
+# shlelf_nbsd.sh
+
+. ${srcdir}/emulparams/shelf.sh
+
+OUTPUT_FORMAT="elf32-sh-nbsd"
+TEXT_START_ADDR=0x400000
+MAXPAGESIZE=0x10000
+
+DATA_START_SYMBOLS='__data_start = . ;';
+
+ENTRY=_start
+
+unset EMBEDDED
+unset STACK_ADDR
diff --git a/ld/emulparams/shlelf_nbsd.sh b/ld/emulparams/shlelf_nbsd.sh
new file mode 100644
index 0000000..d6ca82e
--- /dev/null
+++ b/ld/emulparams/shlelf_nbsd.sh
@@ -0,0 +1,3 @@
+. ${srcdir}/emulparams/shelf_nbsd.sh
+
+OUTPUT_FORMAT="elf32-shl-nbsd"