]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
hppa64: Fix R_PARISC_LTOFF_FPTR64 and R_PARISC_LTOFF_TP64 relocation support
authorJohn David Anglin <danglin@gcc.gnu.org>
Mon, 24 Nov 2025 23:10:23 +0000 (18:10 -0500)
committerJohn David Anglin <danglin@gcc.gnu.org>
Mon, 24 Nov 2025 23:10:23 +0000 (18:10 -0500)
commit9e866f3c26ec60bec31e65de334c1c3fec9868af
tree1f447c3f58d2195f3e1e15185c9f9f332152097b
parent500806dc2a341c0f2e36baf5a379a0b578b2ee2f
hppa64: Fix R_PARISC_LTOFF_FPTR64 and R_PARISC_LTOFF_TP64 relocation support

The elf_hppa_final_link_relocate function didn't handle
R_PARISC_LTOFF_FPTR64 and R_PARISC_LTOFF_TP64 relocations
for local symbols.

DLT and OPD output relocation support for local symbols is
consolidated in elf_hppa_dlt_dynrel_reloc() and
elf_hppa_opd_dynrel_relocs().

2025-11-24  John David Anglin  <danglin@gcc.gnu.org>

bfd/ChangeLog:

* elf64-hppa.c (elf_hppa_dlt_dynrel_reloc): New.
(elf_hppa_opd_dynrel_relocs): New.
(elf_hppa_final_link_relocate): Use elf_hppa_dlt_dynrel_reloc()
and elf_hppa_opd_dynrel_relocs().  Fix relocation support for
R_PARISC_LTOFF_FPTR64 and R_PARISC_LTOFF_TP64.
bfd/elf64-hppa.c