diff options
author | Nick Clifton <nickc@redhat.com> | 2002-08-22 17:27:20 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-08-22 17:27:20 +0000 |
commit | ed71e1110daa51fb1e40bf98ab7b27768be6a123 (patch) | |
tree | 16d35c46d831e6f5422d2dbf52cea1670a5d6f25 /ld | |
parent | dfe0d3fe28b8e6f9e8a43c9aabc09db723b52fc8 (diff) | |
download | gdb-ed71e1110daa51fb1e40bf98ab7b27768be6a123.zip gdb-ed71e1110daa51fb1e40bf98ab7b27768be6a123.tar.gz gdb-ed71e1110daa51fb1e40bf98ab7b27768be6a123.tar.bz2 |
Add sh-nto support
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 8 | ||||
-rw-r--r-- | ld/Makefile.am | 8 | ||||
-rw-r--r-- | ld/Makefile.in | 8 | ||||
-rw-r--r-- | ld/configure.tgt | 5 | ||||
-rw-r--r-- | ld/emulparams/shelf_nto.sh | 10 | ||||
-rw-r--r-- | ld/emulparams/shlelf_nto.sh | 10 |
6 files changed, 48 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 6794d18..6ee0729 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2002-08-22 Graeme Peterson <gp@qnx.com> + + * Makefile.am: Add esh{l}elf_nto.o files. + * Makefile.in: Regenerate. + * configure.tgt: Add support for sh-**-nto* targets. + * emulparams/shelf_nto.sh: New file. + * emulparams/shlelf_nto.sh: New file. + 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca> * ldlang.c (offsetof): Define if not defined. diff --git a/ld/Makefile.am b/ld/Makefile.am index 46f899d..41dae4c 100644 --- a/ld/Makefile.am +++ b/ld/Makefile.am @@ -267,6 +267,8 @@ ALL_EMULATIONS = \ eshlelf_linux.o \ eshelf_nbsd.o \ eshlelf_nbsd.o \ + eshelf_nto.o \ + eshlelf_nto.o \ eshl.o \ eshlelf.o \ eshpe.o \ @@ -1006,11 +1008,17 @@ 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)" +eshelf_nto.c: $(srcdir)/emulparams/shelf_nto.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} shelf_nto "$(tdir_shelf_nto)" 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_nto.c: $(srcdir)/emulparams/shlelf_nto.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} shlelf_nto "$(tdir_shlelf_nto)" 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 c75f0c1..6cc09cf 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -378,6 +378,8 @@ ALL_EMULATIONS = \ eshlelf_linux.o \ eshelf_nbsd.o \ eshlelf_nbsd.o \ + eshelf_nto.o \ + eshlelf_nto.o \ eshl.o \ eshlelf.o \ eshpe.o \ @@ -1729,11 +1731,17 @@ 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)" +eshelf_nto.c: $(srcdir)/emulparams/shelf_nto.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} shelf_nto "$(tdir_shelf_nto)" 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_nto.c: $(srcdir)/emulparams/shlelf_nto.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} shlelf_nto "$(tdir_shlelf_nto)" 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 ffa735c..6659165 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -232,7 +232,7 @@ arm-*-netbsdelf*) targ_emul=armelf_nbsd; targ_extra_emuls="armelfb_nbsd armelf armnbsd" ;; arm-*-netbsd*) targ_emul=armnbsd; targ_extra_emuls="armelf armelf_nbsd armelfb_nbsd" ;; -arm-**-nto*) targ_emul=armnto ;; +arm-*-nto*) targ_emul=armnto ;; arm-*-openbsd*) targ_emul=armnbsd ;; arm-*-rtems*) targ_emul=armelf ;; arm-*-elf) targ_emul=armelf ;; @@ -307,6 +307,9 @@ sh-*-elf* | sh[1234]*-*-elf | sh-*-rtemself*) targ_emul=shelf targ_extra_emuls="shlelf sh shl" ;; +sh-*-nto*) targ_emul=shelf_nto + targ_extra_emuls=shlelf_nto + ;; sh-*-pe) targ_emul=shpe ; targ_extra_ofiles="deffilep.o pe-dll.o" ;; sh-*-*|sh-*-rtems*) targ_emul=sh; targ_extra_emuls=shl ;; diff --git a/ld/emulparams/shelf_nto.sh b/ld/emulparams/shelf_nto.sh new file mode 100644 index 0000000..f2252fb --- /dev/null +++ b/ld/emulparams/shelf_nto.sh @@ -0,0 +1,10 @@ +SCRIPT_NAME=elf +OUTPUT_FORMAT="elf32-sh" +TEXT_START_ADDR=0x08040000 +MAXPAGESIZE=0x1000 +ARCH=sh +MACHINE= +TEMPLATE_NAME=elf32 +GENERATE_SHLIB_SCRIPT=yes +TEXT_START_SYMBOLS='_btext = .;' +ENTRY=_start diff --git a/ld/emulparams/shlelf_nto.sh b/ld/emulparams/shlelf_nto.sh new file mode 100644 index 0000000..d23e69a --- /dev/null +++ b/ld/emulparams/shlelf_nto.sh @@ -0,0 +1,10 @@ +SCRIPT_NAME=elf +OUTPUT_FORMAT="elf32-shl" +TEXT_START_ADDR=0x08040000 +MAXPAGESIZE=0x1000 +ARCH=sh +MACHINE= +TEMPLATE_NAME=elf32 +GENERATE_SHLIB_SCRIPT=yes +TEXT_START_SYMBOLS='_btext = .;' +ENTRY=_start |