175fd0b74Schristos /* ELF64/HPPA support 275fd0b74Schristos 3*e992f068Schristos Copyright (C) 1999-2022 Free Software Foundation, Inc. 475fd0b74Schristos 575fd0b74Schristos This file is part of BFD, the Binary File Descriptor library. 675fd0b74Schristos 775fd0b74Schristos This program is free software; you can redistribute it and/or modify 875fd0b74Schristos it under the terms of the GNU General Public License as published by 975fd0b74Schristos the Free Software Foundation; either version 3 of the License, or 1075fd0b74Schristos (at your option) any later version. 1175fd0b74Schristos 1275fd0b74Schristos This program is distributed in the hope that it will be useful, 1375fd0b74Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 1475fd0b74Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1575fd0b74Schristos GNU General Public License for more details. 1675fd0b74Schristos 1775fd0b74Schristos You should have received a copy of the GNU General Public License 1875fd0b74Schristos along with this program; if not, write to the Free Software 1975fd0b74Schristos Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, 2075fd0b74Schristos MA 02110-1301, USA. */ 2175fd0b74Schristos 2275fd0b74Schristos #ifndef _ELF64_HPPA_H 2375fd0b74Schristos #define _ELF64_HPPA_H 2475fd0b74Schristos 2575fd0b74Schristos #include "elf-bfd.h" 2675fd0b74Schristos #include "libhppa.h" 2775fd0b74Schristos #include "elf/hppa.h" 2875fd0b74Schristos 2975fd0b74Schristos extern elf_hppa_reloc_type elf64_hppa_reloc_final_type 3075fd0b74Schristos (bfd *, elf_hppa_reloc_type, int, unsigned int); 3175fd0b74Schristos 3275fd0b74Schristos extern elf_hppa_reloc_type ** _bfd_elf64_hppa_gen_reloc_type 3375fd0b74Schristos (bfd *, elf_hppa_reloc_type, int, unsigned int, int, asymbol *); 3475fd0b74Schristos 3575fd0b74Schristos /* Define groups of basic relocations. FIXME: These should 3675fd0b74Schristos be the only basic relocations created by GAS. The rest 3775fd0b74Schristos should be internal to the BFD backend. 3875fd0b74Schristos 3975fd0b74Schristos The idea is both SOM and ELF define these basic relocation 4075fd0b74Schristos types so they map into a SOM or ELF specific relocation 4175fd0b74Schristos as appropriate. This allows GAS to share much more code 4275fd0b74Schristos between the two target object formats. */ 4375fd0b74Schristos 4475fd0b74Schristos #define R_HPPA_NONE R_PARISC_NONE 4575fd0b74Schristos #define R_HPPA R_PARISC_DIR64 4675fd0b74Schristos #define R_HPPA_GOTOFF R_PARISC_DLTREL21L 4775fd0b74Schristos #define R_HPPA_PCREL_CALL R_PARISC_PCREL21L 4875fd0b74Schristos #define R_HPPA_ABS_CALL R_PARISC_DIR17F 4975fd0b74Schristos #define R_HPPA_COMPLEX R_PARISC_UNIMPLEMENTED 5075fd0b74Schristos 5175fd0b74Schristos #endif /* _ELF64_HPPA_H */ 52