]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
hppa64: Implement support for DT_TEXTREL
authorJohn David Anglin <danglin@gcc.gnu.org>
Thu, 22 Jan 2026 22:16:50 +0000 (17:16 -0500)
committerJohn David Anglin <danglin@gcc.gnu.org>
Thu, 22 Jan 2026 22:16:50 +0000 (17:16 -0500)
commit7947351d86ae2df2276bdbc9f6cb4d8bb80d5366
treec09456bfe52ef3e7f75a52d03842ba3aeb41ef0e
parent44ae137c1fcefe486639b7eab3f6a7f60e4659e5
hppa64: Implement support for DT_TEXTREL

This fixes ld-elf/pr19539, DT_TEXTREL in shared lib, and DT_TEXTREL
map file warning tests on hppa64.

2026-01-22  John David Anglin  <danglin@gcc.gnu.org>

bfd/ChangeLog:

* elf64-hppa.c (allocate_dynrel_entries): Set DF_TEXTREL
if it isn't already set and we encounter a relocation
against a readonly section.
(elf64_hppa_late_size_sections): Add DT_TEXTREL dynamic
entry if we have relocs and DF_TEXTREL is set in info->flags.
bfd/elf64-hppa.c