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.
This commit is contained in:
parent
34c0bd933d
commit
8d05742ff6
@ -1,3 +1,20 @@
|
||||
2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2002-01-07 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
* coff-rs6000.c (READ20): Use bfd_scan_vma.
|
||||
|
@ -217,6 +217,7 @@ BFD32_BACKENDS = \
|
||||
elf32-s390.lo \
|
||||
elf32-sh.lo \
|
||||
elf32-sh-lin.lo \
|
||||
elf32-sh-nbsd.lo \
|
||||
elf32-sparc.lo \
|
||||
elf32-v850.lo \
|
||||
elf32-xstormy16.lo \
|
||||
@ -360,6 +361,7 @@ BFD32_BACKENDS_CFILES = \
|
||||
elf32-s390.c \
|
||||
elf32-sh.c \
|
||||
elf32-sh-lin.c \
|
||||
elf32-sh-nbsd.c \
|
||||
elf32-sparc.c \
|
||||
elf32-v850.c \
|
||||
elf32-xstormy16.c \
|
||||
@ -1130,6 +1132,10 @@ elf32-sh-lin.lo: elf32-sh-lin.c $(INCDIR)/filenames.h \
|
||||
$(INCDIR)/elf/internal.h elf-bfd.h $(INCDIR)/elf/common.h \
|
||||
$(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h elf32-sh.c \
|
||||
$(INCDIR)/elf/sh.h $(INCDIR)/elf/reloc-macros.h elf32-target.h
|
||||
elf32-sh-nbsd.lo: elf32-sh-nbsd.c $(INCDIR)/filenames.h \
|
||||
$(INCDIR)/elf/internal.h elf-bfd.h $(INCDIR)/elf/common.h \
|
||||
$(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h elf32-sh.c \
|
||||
$(INCDIR)/elf/sh.h $(INCDIR)/elf/reloc-macros.h elf32-target.h
|
||||
elf32-sparc.lo: elf32-sparc.c $(INCDIR)/filenames.h \
|
||||
$(INCDIR)/bfdlink.h elf-bfd.h $(INCDIR)/elf/common.h \
|
||||
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/elf/sparc.h \
|
||||
|
@ -345,6 +345,7 @@ BFD32_BACKENDS = \
|
||||
elf32-s390.lo \
|
||||
elf32-sh.lo \
|
||||
elf32-sh-lin.lo \
|
||||
elf32-sh-nbsd.lo \
|
||||
elf32-sparc.lo \
|
||||
elf32-v850.lo \
|
||||
elf32-xstormy16.lo \
|
||||
@ -489,6 +490,7 @@ BFD32_BACKENDS_CFILES = \
|
||||
elf32-s390.c \
|
||||
elf32-sh.c \
|
||||
elf32-sh-lin.c \
|
||||
elf32-sh-nbsd.c \
|
||||
elf32-sparc.c \
|
||||
elf32-v850.c \
|
||||
elf32-xstormy16.c \
|
||||
@ -1674,6 +1676,10 @@ elf32-sh-lin.lo: elf32-sh-lin.c $(INCDIR)/filenames.h \
|
||||
$(INCDIR)/elf/internal.h elf-bfd.h $(INCDIR)/elf/common.h \
|
||||
$(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h elf32-sh.c \
|
||||
$(INCDIR)/elf/sh.h $(INCDIR)/elf/reloc-macros.h elf32-target.h
|
||||
elf32-sh-nbsd.lo: elf32-sh-nbsd.c $(INCDIR)/filenames.h \
|
||||
$(INCDIR)/elf/internal.h elf-bfd.h $(INCDIR)/elf/common.h \
|
||||
$(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h elf32-sh.c \
|
||||
$(INCDIR)/elf/sh.h $(INCDIR)/elf/reloc-macros.h elf32-target.h
|
||||
elf32-sparc.lo: elf32-sparc.c $(INCDIR)/filenames.h \
|
||||
$(INCDIR)/bfdlink.h elf-bfd.h $(INCDIR)/elf/common.h \
|
||||
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/elf/sparc.h \
|
||||
|
@ -843,6 +843,15 @@ case "${targ}" in
|
||||
targ_defvec=bfd_elf32_shlin_vec
|
||||
;;
|
||||
|
||||
sh*le-*-netbsdelf*)
|
||||
targ_defvec=bfd_elf32_shlnbsd_vec
|
||||
targ_selvecs="bfd_elf32_shnbsd_vec shcoff_vec shlcoff_vec"
|
||||
;;
|
||||
sh*-*-netbsdelf*)
|
||||
targ_defvec=bfd_elf32_shnbsd_vec
|
||||
targ_selvecs="bfd_elf32_shlnbsd_vec shcoff_vec shlcoff_vec"
|
||||
;;
|
||||
|
||||
sh-*-elf* | sh-*-rtemself*)
|
||||
targ_defvec=bfd_elf32_sh_vec
|
||||
targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
|
||||
|
331
bfd/configure
vendored
331
bfd/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -337,6 +337,7 @@ changequote([,])dnl
|
||||
powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
||||
powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
|
||||
s390*-*-*) COREFILE=trad-core.lo ;;
|
||||
sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
||||
sparc-*-netbsd* | sparc-*-openbsd*)
|
||||
COREFILE=netbsd-core.lo
|
||||
;;
|
||||
@ -581,6 +582,8 @@ do
|
||||
bfd_elf32_shblin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
||||
bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
||||
bfd_elf32_shlin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
||||
bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh-nbsd.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
||||
bfd_elf32_shnbsd_vec) tb="$tb elf32-sh-nbsd.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
||||
bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
|
||||
bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
||||
bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
||||
|
29
bfd/elf32-sh-nbsd.c
Normal file
29
bfd/elf32-sh-nbsd.c
Normal file
@ -0,0 +1,29 @@
|
||||
/* Hitachi SH specific support for 32-bit NetBSD
|
||||
Copyright 2002 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
#define TARGET_BIG_SYM bfd_elf32_shnbsd_vec
|
||||
#define TARGET_BIG_NAME "elf32-sh-nbsd"
|
||||
#define TARGET_LITTLE_SYM bfd_elf32_shlnbsd_vec
|
||||
#define TARGET_LITTLE_NAME "elf32-shl-nbsd"
|
||||
#define ELF_ARCH bfd_arch_sh
|
||||
#define ELF_MACHINE_CODE EM_SH
|
||||
#define ELF_MAXPAGESIZE 0x10000
|
||||
#define elf_symbol_leading_char 0
|
||||
|
||||
#include "elf32-sh.c"
|
@ -1,6 +1,6 @@
|
||||
/* Generic target-file-type support for the BFD library.
|
||||
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||
2000, 2001
|
||||
2000, 2001, 2002
|
||||
Free Software Foundation, Inc.
|
||||
Written by Cygnus Support.
|
||||
|
||||
@ -550,6 +550,8 @@ extern const bfd_target bfd_elf32_sh_vec;
|
||||
extern const bfd_target bfd_elf32_shblin_vec;
|
||||
extern const bfd_target bfd_elf32_shl_vec;
|
||||
extern const bfd_target bfd_elf32_shlin_vec;
|
||||
extern const bfd_target bfd_elf32_shlnbsd_vec;
|
||||
extern const bfd_target bfd_elf32_shnbsd_vec;
|
||||
extern const bfd_target bfd_elf32_sparc_vec;
|
||||
extern const bfd_target bfd_elf32_tradbigmips_vec;
|
||||
extern const bfd_target bfd_elf32_tradlittlemips_vec;
|
||||
@ -791,6 +793,8 @@ static const bfd_target * const _bfd_target_vector[] = {
|
||||
&bfd_elf32_shblin_vec,
|
||||
&bfd_elf32_shl_vec,
|
||||
&bfd_elf32_shlin_vec,
|
||||
&bfd_elf32_shlnbsd_vec,
|
||||
&bfd_elf32_shnbsd_vec,
|
||||
&bfd_elf32_sparc_vec,
|
||||
&bfd_elf32_tradbigmips_vec,
|
||||
&bfd_elf32_tradlittlemips_vec,
|
||||
|
@ -1,3 +1,11 @@
|
||||
2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
|
||||
|
||||
* read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* This file is tc-sh.h
|
||||
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
|
||||
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GAS, the GNU Assembler.
|
||||
@ -165,6 +165,8 @@ extern int tc_coff_sizemachdep PARAMS ((fragS *));
|
||||
extern int target_big_endian;
|
||||
#ifdef TE_LINUX
|
||||
#define TARGET_FORMAT (!target_big_endian ? "elf32-sh-linux" : "elf32-shbig-linux")
|
||||
#elif defined(TE_NetBSD)
|
||||
#define TARGET_FORMAT (!target_big_endian ? "elf32-shl-nbsd" : "elf32-sh-nbsd")
|
||||
#else
|
||||
#define TARGET_FORMAT (!target_big_endian ? "elf32-shl" : "elf32-sh")
|
||||
#endif
|
||||
|
340
gas/configure
vendored
340
gas/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -144,6 +144,7 @@ changequote([,])dnl
|
||||
rs6000*) cpu_type=ppc ;;
|
||||
s390x*) cpu_type=s390 arch=s390x ;;
|
||||
s390*) cpu_type=s390 arch=s390 ;;
|
||||
sh*le) cpu_type=sh endian=little ;;
|
||||
sh*) cpu_type=sh endian=big ;;
|
||||
sparclite*) cpu_type=sparc arch=sparclite ;;
|
||||
sparclet*) cpu_type=sparc arch=sparclet ;;
|
||||
@ -411,6 +412,7 @@ changequote([,])dnl
|
||||
sh*)
|
||||
endian=little ;;
|
||||
esac ;;
|
||||
sh*-*-netbsdelf*) fmt=elf em=nbsd ;;
|
||||
sh-*-elf*) fmt=elf ;;
|
||||
sh-*-coff*) fmt=coff bfd_gas=yes;;
|
||||
sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
|
||||
|
12
ld/ChangeLog
12
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.
|
||||
|
@ -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}
|
||||
|
@ -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}
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
15
ld/emulparams/shelf_nbsd.sh
Normal file
15
ld/emulparams/shelf_nbsd.sh
Normal file
@ -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
|
3
ld/emulparams/shlelf_nbsd.sh
Normal file
3
ld/emulparams/shlelf_nbsd.sh
Normal file
@ -0,0 +1,3 @@
|
||||
. ${srcdir}/emulparams/shelf_nbsd.sh
|
||||
|
||||
OUTPUT_FORMAT="elf32-shl-nbsd"
|
Loading…
Reference in New Issue
Block a user