diff options
author | Stefan Liebler <stli@linux.ibm.com> | 2022-04-28 14:30:55 +0200 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.ibm.com> | 2022-04-28 14:54:50 +0200 |
commit | 44f1cd7f536f7eeb9440e8c8d81a10adbb16296b (patch) | |
tree | 4396fddf0b7aa0d0e7da7b069139009cf5c568f0 /compile | |
parent | e20961e9f9d058fab00ce511b429570a901396e6 (diff) | |
download | gdb-44f1cd7f536f7eeb9440e8c8d81a10adbb16296b.zip gdb-44f1cd7f536f7eeb9440e8c8d81a10adbb16296b.tar.gz gdb-44f1cd7f536f7eeb9440e8c8d81a10adbb16296b.tar.bz2 |
s390: Add DT_JMPREL pointing to .rela.[i]plt with static-pie
In static-pie case, there are IRELATIVE-relocs in
.rela.iplt (htab->irelplt), which will later be grouped
to .rela.plt. On s390, the IRELATIVE relocations are
always located in .rela.iplt - even for non-static case.
Ensure that DT_JMPREL, DT_PLTRELA, DT_PLTRELASZ is added
to the dynamic section even if htab->srelplt->size == 0.
See _bfd_elf_add_dynamic_tags in bfd/elflink.c.
bfd/
elf64-s390.c (elf_s390_size_dynamic_sections):
Enforce DT_JMPREL via htab->elf.dt_jmprel_required.
(cherry picked from commit d942d8db12adf4c9e5c7d9ed6496a779ece7149e)
Diffstat (limited to 'compile')
0 files changed, 0 insertions, 0 deletions