2025-10-30 John David Anglin <danglin@gcc.gnu.org>
bfd/ChangeLog:
* elf64-hppa.c (elf64_hppa_finalize_opd): Use address of
__text_seg symbol instead of hppa_info->text_segment_base.
Elf_Internal_Rela rel;
bfd_byte *loc;
int dynindx;
+ asection *sec;
/* The offset of this relocation is the absolute address of the
.opd entry for this symbol. */
+ eh->root.u.def.section->output_offset);
/* Compute the base address of the segment with this symbol. */
- value2 = hppa_info->text_segment_base;
+ sec = hppa_info->text_segment->root.u.def.section;
+ value2 = sec->output_section->vma;
/* Compute the difference between the symbol and the text segment
base address. */