Browse Source
* 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.binutils-2_12-branch
19 changed files with 474 additions and 349 deletions
File diff suppressed because it is too large
@ -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" |
|||
File diff suppressed because it is too large
@ -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 |
|||
@ -0,0 +1,3 @@ |
|||
. ${srcdir}/emulparams/shelf_nbsd.sh |
|||
|
|||
OUTPUT_FORMAT="elf32-shl-nbsd" |
|||
Loading…
Reference in new issue