diff options
author | Jason Thorpe <thorpej@netbsd.org> | 2004-07-27 22:30:25 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@netbsd.org> | 2004-07-27 22:30:25 +0000 |
commit | 225247f09fa353923f236db2c1e4c7fea74ac63e (patch) | |
tree | aca12be4ba1a4ae35fcba22ab8a16610efb67a50 /gas | |
parent | 1bec8141aa331266a162701c3ba0e0ea9bf3b6d5 (diff) | |
download | gdb-225247f09fa353923f236db2c1e4c7fea74ac63e.zip gdb-225247f09fa353923f236db2c1e4c7fea74ac63e.tar.gz gdb-225247f09fa353923f236db2c1e4c7fea74ac63e.tar.bz2 |
bfd:
* config.bfd (hppa*-*-netbsd*): Set targ_defvec to
bfd_elf32_hppa_nbsd_vec. Add bfd_elf32_hppa_linux_vec
to targ_selvecs.
* configure.in (bfd_elf32_hppa_nbsd_vec): Add case.
* configure: Regenerate.
* elf32-hppa.c (elf32_hppa_object_p): Add "elf32-hppa-netbsd"
case that accepts OSABI=NetBSD and OSABI=SysV.
(elf32_hppa_set_gp): For "elf32-hppa-netbsd", set the GP to
the base of .got or .data (if .got does not exist).
(elf32_hppa_post_process_headers): For elf32-hppa-netbsd,
set OSABI=NetBSD.
(TARGET_BIG_SYM): Add bfd_elf32_hppa_nbsd_vec case.
(TARGET_BIG_NAME): Add "elf32-hppa-netbsd" case.
* targets.c (bfd_elf32_hppa_nbsd_vec): Add extern declaration.
(_bfd_target_vector): Add bfd_elf32_hppa_nbsd_vec.
gas:
* config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
for TE_NetBSD.
ld:
* emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
Diffstat (limited to 'gas')
-rw-r--r-- | gas/config/tc-hppa.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gas/config/tc-hppa.h b/gas/config/tc-hppa.h index 64d0644..4b43a7f 100644 --- a/gas/config/tc-hppa.h +++ b/gas/config/tc-hppa.h @@ -55,13 +55,17 @@ #endif #else /* TARGET_ARCH_SIZE == 32 */ #include "bfd/elf32-hppa.h" -#if defined (TE_LINUX) || defined (TE_NetBSD) +#if defined (TE_LINUX) #define TARGET_FORMAT "elf32-hppa-linux" #else +#if defined (TE_NetBSD) +#define TARGET_FORMAT "elf32-hppa-netbsd" +#else #define TARGET_FORMAT "elf32-hppa" #endif #endif #endif +#endif #ifdef OBJ_SOM #include "bfd/som.h" |