From ed6ba29825f54a73da0b6829600f5cb9b59c9142 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Wed, 28 Feb 2007 10:53:19 +0000 Subject: [PATCH] bfd/ * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza. gas/ * configure.tgt (sh-*-uclinux, sh[12]-*-uclinux): Specify as elf. ld/ * Makefile.am (ALL_EMULATIONS): Add eshelf_uclinux.o (eshelf_uclinux.c): New target. * Makefile.in: Rebuilt. * configure.tgt (sh-*-uclinux* | sh[12]-*-uclinux*): New stanza. * emulparams/shelf_uclinux.sh: New. --- bfd/ChangeLog | 4 ++++ bfd/config.bfd | 8 ++++++++ gas/ChangeLog | 4 ++++ gas/configure.tgt | 2 +- ld/ChangeLog | 8 ++++++++ ld/Makefile.am | 4 ++++ ld/Makefile.in | 4 ++++ ld/configure.tgt | 3 +++ 8 files changed, 36 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a66c0f26988..d02f19a5089 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2007-02-28 Nathan Sidwell + + * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza. + 2007-02-27 Alan Modra * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const. diff --git a/bfd/config.bfd b/bfd/config.bfd index 871fb4380f0..8d9e9f6c90b 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -1193,6 +1193,14 @@ case "${targ}" in targ_selvecs=bfd_elf32_shblin_vec ;; + sh-*-uclinux* | sh[12]-*-uclinux*) + targ_defvec=bfd_elf32_sh_vec + targ_selvecs="bfd_elf32_shblin_vec bfd_elf32_shlin_vec" +#ifdef BFD64 + targ_selvecs="${targ_selvecs} bfd_elf32_sh64lin_vec bfd_elf32_sh64blin_vec bfd_elf64_sh64lin_vec bfd_elf64_sh64blin_vec" +#endif + ;; + #ifdef BFD64 sh5le-*-netbsd*) targ_defvec=bfd_elf32_sh64lnbsd_vec diff --git a/gas/ChangeLog b/gas/ChangeLog index df1cafd561a..da2051cf08e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2007-02-28 Nathan Sidwell + + * configure.tgt (sh-*-uclinux, sh[12]-*-uclinux): Specify as elf. + 2007-02-28 Nick Clifton PR gas/2623 diff --git a/gas/configure.tgt b/gas/configure.tgt index 783379f933a..e5081d060cf 100644 --- a/gas/configure.tgt +++ b/gas/configure.tgt @@ -337,7 +337,7 @@ case ${generic_target} in sh64*-*-netbsd*) fmt=elf em=nbsd ;; sh*-*-netbsdelf*) fmt=elf em=nbsd ;; sh*-*-symbianelf*) fmt=elf endian=little ;; - sh-*-elf*) fmt=elf ;; + sh-*-elf* | sh-*-uclinux* | sh[12]-*-uclinux*) fmt=elf ;; sh-*-coff*) fmt=coff ;; sh-*-nto*) fmt=elf ;; sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;; diff --git a/ld/ChangeLog b/ld/ChangeLog index ee7ec87a37f..4ed6dc858fb 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2007-02-28 Nathan Sidwell + + * Makefile.am (ALL_EMULATIONS): Add eshelf_uclinux.o + (eshelf_uclinux.c): New target. + * Makefile.in: Rebuilt. + * configure.tgt (sh-*-uclinux* | sh[12]-*-uclinux*): New stanza. + * emulparams/shelf_uclinux.sh: New. + 2007-02-28 Alan Modra * configure.tgt: Fix type last change. diff --git a/ld/Makefile.am b/ld/Makefile.am index 767a9cad66a..0dcbf85070e 100644 --- a/ld/Makefile.am +++ b/ld/Makefile.am @@ -364,6 +364,7 @@ ALL_EMULATIONS = \ eshlelf_nbsd.o \ eshelf_nto.o \ eshlelf_nto.o \ + eshelf_uclinux.o \ eshelf_vxworks.o \ eshlelf_vxworks.o \ eshl.o \ @@ -1559,6 +1560,9 @@ eshlelf_vxworks.c: $(srcdir)/emulparams/shlelf_vxworks.sh \ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc $(srcdir)/emultempl/vxworks.em \ ${GEN_DEPENDS} ${GENSCRIPTS} shlelf_vxworks "$(tdir_shlelf_vxworks)" +eshelf_uclinux.c: $(srcdir)/emulparams/shelf_uclinux.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} shelf_uclinux "$(tdir_shelf_uclinux)" eshlelf.c: $(srcdir)/emulparams/shlelf.sh \ $(srcdir)/emulparams/shelf.sh \ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} diff --git a/ld/Makefile.in b/ld/Makefile.in index e0e79f557b3..d32c529322e 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -596,6 +596,7 @@ ALL_EMULATIONS = \ eshlelf_nbsd.o \ eshelf_nto.o \ eshlelf_nto.o \ + eshelf_uclinux.o \ eshelf_vxworks.o \ eshlelf_vxworks.o \ eshl.o \ @@ -2370,6 +2371,9 @@ eshlelf_vxworks.c: $(srcdir)/emulparams/shlelf_vxworks.sh \ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc $(srcdir)/emultempl/vxworks.em \ ${GEN_DEPENDS} ${GENSCRIPTS} shlelf_vxworks "$(tdir_shlelf_vxworks)" +eshelf_uclinux.c: $(srcdir)/emulparams/shelf_uclinux.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} shelf_uclinux "$(tdir_shelf_uclinux)" eshlelf.c: $(srcdir)/emulparams/shlelf.sh \ $(srcdir)/emulparams/shelf.sh \ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} diff --git a/ld/configure.tgt b/ld/configure.tgt index ba09a42e77b..bd3b52535b0 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -511,6 +511,9 @@ sh-*-rtemscoff*) targ_emul=sh; targ_extra_emuls=shl ;; sh-*-elf* | sh[1234]*-*-elf | sh-*-rtems* | sh-*-kaos*) targ_emul=shelf targ_extra_emuls="shlelf sh shl" ;; +sh-*-uclinux* | sh[12]-*-uclinux*) + targ_emul=shelf_uclinux + targ_extra_emuls="shelf shlelf sh shl" ;; sh-*-vxworks) targ_emul=shelf_vxworks targ_extra_emuls=shlelf_vxworks ;; sh-*-nto*) targ_emul=shelf_nto -- 2.30.2