projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f22c95
)
PowerPC64 DT_RELR local PLT
author
Alan Modra
<amodra@gmail.com>
Wed, 19 Jan 2022 02:58:04 +0000
(13:28 +1030)
committer
Alan Modra
<amodra@gmail.com>
Wed, 19 Jan 2022 06:15:45 +0000
(16:45 +1030)
Similarly to the local GOT case.
* elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
space for PLT relocs against local syms when enable_dt_relr.
bfd/elf64-ppc.c
patch
|
blob
|
history
diff --git
a/bfd/elf64-ppc.c
b/bfd/elf64-ppc.c
index 0ac96afe5a3c6723b2467e32385a12a7d7510c08..dccd535dbb098925a2845080a3bc96e993e15e45 100644
(file)
--- a/
bfd/elf64-ppc.c
+++ b/
bfd/elf64-ppc.c
@@
-10356,7
+10356,8
@@
ppc64_elf_size_dynamic_sections (bfd *output_bfd,
s = htab->pltlocal;
ent->plt.offset = s->size;
s->size += LOCAL_PLT_ENTRY_SIZE (htab);
- if (bfd_link_pic (info))
+ if (bfd_link_pic (info)
+ && !(info->enable_dt_relr && !htab->opd_abi))
htab->relpltlocal->size += sizeof (Elf64_External_Rela);
}
}