aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
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/emulparams
parent34c0bd933de019af43d6c8fe0bb7bdf87442eaa9 (diff)
downloadgdb-8d05742ff61cb729d294257e99ec13104e4c1c35.zip
gdb-8d05742ff61cb729d294257e99ec13104e4c1c35.tar.gz
gdb-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/emulparams')
-rw-r--r--ld/emulparams/shelf.sh2
-rw-r--r--ld/emulparams/shelf_nbsd.sh15
-rw-r--r--ld/emulparams/shlelf_nbsd.sh3
3 files changed, 19 insertions, 1 deletions
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"