diff options
author | Jason Thorpe <thorpej@netbsd.org> | 2002-01-08 04:23:02 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@netbsd.org> | 2002-01-08 04:23:02 +0000 |
commit | 8d05742ff61cb729d294257e99ec13104e4c1c35 (patch) | |
tree | ceda788ea57d569ba5c455c5e1b5bfc97902b8ad /bfd/elf32-sh-nbsd.c | |
parent | 34c0bd933de019af43d6c8fe0bb7bdf87442eaa9 (diff) | |
download | gdb-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 'bfd/elf32-sh-nbsd.c')
-rw-r--r-- | bfd/elf32-sh-nbsd.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/bfd/elf32-sh-nbsd.c b/bfd/elf32-sh-nbsd.c new file mode 100644 index 0000000..692b057 --- /dev/null +++ b/bfd/elf32-sh-nbsd.c @@ -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" |