-/* ELF/HPPA relocation types */
-
-typedef enum
- {
- /* Address relocation types
- These relocation types do simple base + offset relocations. */
-
- R_PARISC_NONE = 0x00,
- R_PARISC_DIR32 = 0x01,
- R_PARISC_DIR21L = 0x02,
- R_PARISC_DIR17R = 0x03,
- R_PARISC_DIR17F = 0x04,
- R_PARISC_DIR14R = 0x06,
-
- /* PC-relative relocation types
- Typically used for calls.
- Note PCREL17C and PCREL17F differ only in overflow handling.
- PCREL17C never reports a relocation error.
-
- When supporting argument relocations, function calls must be
- accompanied by parameter relocation information. This information is
- carried in the ten high-order bits of the addend field. The remaining
- 22 bits of of the addend field are sign-extended to form the Addend.
-
- Note the code to build argument relocations depends on the
- addend being zero. A consequence of this limitation is GAS
- can not perform relocation reductions for function symbols. */
- R_PARISC_PCREL21L = 0x0a,
- R_PARISC_PCREL17R = 0x0b,
- R_PARISC_PCREL17F = 0x0c,
- R_PARISC_PCREL17C = 0x0d,
- R_PARISC_PCREL14R = 0x0e,
- R_PARISC_PCREL14F = 0x0f,
-
- /* DP-relative relocation types. */
- R_PARISC_DPREL21L = 0x12,
- R_PARISC_DPREL14R = 0x16,
- R_PARISC_DPREL14F = 0x17,
-
- /* Data linkage table (DLT) relocation types
-
- SOM DLT_REL fixup requests are used to for static data references
- from position-independent code within shared libraries. They are
- similar to the GOT relocation types in some SVR4 implementations. */
-
- R_PARISC_DLTREL21L = 0x1a,
- R_PARISC_DLTREL14R = 0x1e,
- R_PARISC_DLTREL14F = 0x1f,
-
- /* DLT indirect relocation types */
- R_PARISC_DLTIND21L = 0x22,
- R_PARISC_DLTIND14R = 0x26,
- R_PARISC_DLTIND14F = 0x27,
-
- /* Base relative relocation types. Ugh. These imply lots of state */
- R_PARISC_SETBASE = 0x28,
- R_PARISC_BASEREL32 = 0x29,
- R_PARISC_BASEREL21L = 0x2a,
- R_PARISC_BASEREL17R = 0x2b,
- R_PARISC_BASEREL17F = 0x2c,
- R_PARISC_BASEREL14R = 0x2e,
- R_PARISC_BASEREL14F = 0x2f,
-
- /* Segment relative relocation types. */
- R_PARISC_TEXTREL32 = 0x31,
- R_PARISC_DATAREL32 = 0x39,
-
- /* Plabel relocation types. */
- R_PARISC_PLABEL32 = 0x41,
- R_PARISC_PLABEL21L = 0x42,
- R_PARISC_PLABEL14R = 0x46,
-
- /* PLT relocations. */
- R_PARISC_PLTIND21L = 0x82,
- R_PARISC_PLTIND14R = 0x86,
- R_PARISC_PLTIND14F = 0x87,
-
- /* Misc relocation types. */
- R_PARISC_COPY = 0x88,
- R_PARISC_GLOB_DAT = 0x89,
- R_PARISC_JMP_SLOT = 0x8a,
- R_PARISC_RELATIVE = 0x8b,
- R_PARISC_STUB_CALL_17 = 0x8c,
- R_PARISC_UNIMPLEMENTED,
- }
-elf32_hppa_reloc_type;
-
-#define ELF_HOWTO_TABLE_SIZE R_PARISC_UNIMPLEMENTED + 1
-#define N_PARISC_RELOCS R_PARISC_UNIMPLEMENTED + 1
+int elf32_hppa_setup_section_lists
+ PARAMS ((bfd *, struct bfd_link_info *));
+
+void elf32_hppa_next_input_section
+ PARAMS ((struct bfd_link_info *, asection *));
+
+boolean elf32_hppa_size_stubs
+ PARAMS ((bfd *, bfd *, struct bfd_link_info *, boolean, bfd_signed_vma,
+ asection * (*) PARAMS ((const char *, asection *)),
+ void (*) PARAMS ((void))));
+
+boolean elf32_hppa_set_gp
+ PARAMS ((bfd *, struct bfd_link_info *));
+
+boolean elf32_hppa_build_stubs
+ PARAMS ((struct bfd_link_info *));
+
+elf_hppa_reloc_type elf32_hppa_reloc_final_type
+ PARAMS ((bfd *, elf_hppa_reloc_type, int, unsigned int));
+
+extern elf_hppa_reloc_type ** _bfd_elf32_hppa_gen_reloc_type
+ PARAMS ((bfd *, elf_hppa_reloc_type, int, unsigned int, int, asymbol *));