From 7ba6ec0182cfde6de0c769e0fe6322bfdd9e5b67 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 22 Jun 1999 12:20:30 +0000 Subject: * elf-hppa.h: New file. Common stuff for elf32 and elf64 PA support. * elf32-hppa.c: Include elf-hppa.h. (ARCH_SIZE): Define. (elf_hppa_reloc_type_lookup): Delete. Found in the common code now. (elf32_hppa_info_to_howto): Similarly. (elf_hppa_howto_table): Similarly. (elf_hppa_reloc_type_lookup): Similarly. (hppa_elf_gen_reloc_type): Similarly. * elf32-hppa.h (ELF_HOWTO_TALBE, N_PARISC_RELOCS): Delete. --- bfd/elf32-hppa.h | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) (limited to 'bfd/elf32-hppa.h') diff --git a/bfd/elf32-hppa.h b/bfd/elf32-hppa.h index b233920459..2d99aa8f33 100644 --- a/bfd/elf32-hppa.h +++ b/bfd/elf32-hppa.h @@ -35,32 +35,26 @@ #include "libhppa.h" #include "elf/hppa.h" -#define ELF_HOWTO_TABLE_SIZE R_PARISC_UNIMPLEMENTED + 1 -#define N_PARISC_RELOCS R_PARISC_UNIMPLEMENTED + 1 +boolean elf32_hppa_size_stubs + PARAMS ((bfd *, bfd *, struct bfd_link_info *)); + +boolean elf32_hppa_build_stubs + PARAMS ((bfd *, struct bfd_link_info *)); /* Define groups of basic relocations. FIXME: These should be the only basic relocations created by GAS. The rest - should be internal to the BFD backend. + should be internal to the BFD backend. The idea is both SOM and ELF define these basic relocation - types so they map into a SOM or ELF specific relocation + types so they map into a SOM or ELF specific relocation as appropriate. This allows GAS to share much more code between the two target object formats. */ #define R_HPPA_NONE R_PARISC_NONE -#define R_HPPA R_PARISC_DIR32 -#define R_HPPA_GOTOFF R_PARISC_DPREL21L -#define R_HPPA_PCREL_CALL R_PARISC_PCREL21L +#define R_HPPA R_PARISC_DIR32 +#define R_HPPA_GOTOFF R_PARISC_DPREL21L +#define R_HPPA_PCREL_CALL R_PARISC_PCREL21L #define R_HPPA_ABS_CALL R_PARISC_DIR17F #define R_HPPA_COMPLEX R_PARISC_UNIMPLEMENTED -elf32_hppa_reloc_type ** hppa_elf_gen_reloc_type - PARAMS ((bfd *, elf32_hppa_reloc_type, int, int, int, asymbol *)); - -boolean elf32_hppa_size_stubs - PARAMS ((bfd *, bfd *, struct bfd_link_info *)); - -boolean elf32_hppa_build_stubs - PARAMS ((bfd *, struct bfd_link_info *)); - #endif /* _ELF32_HPPA_H */ -- cgit v1.2.1