diff options
author | Alan Modra <amodra@gmail.com> | 2019-06-18 10:34:14 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-06-19 14:01:05 +0930 |
commit | 4a4e7361d67cd9262be1413300795eede564f4cb (patch) | |
tree | e437fd994ab680f45bb277ab91a56a3c01787b22 /bfd/ChangeLog | |
parent | 312413cb844dcce24b0c30254f5789b77a54b0fc (diff) | |
download | gdb-4a4e7361d67cd9262be1413300795eede564f4cb.zip gdb-4a4e7361d67cd9262be1413300795eede564f4cb.tar.gz gdb-4a4e7361d67cd9262be1413300795eede564f4cb.tar.bz2 |
PowerPC64 notoc calls
Calls from functions that don't have a valid toc pointer in r2 (these
calls are marked with _NOTOC relocs) to functions that require r2
valid must go via the callee global entry point. This patch corrects
the condition the linker was using to detect functions that require r2
to be valid. Values of both zero and one in st_other local entry bits
mean a function doesn't care about r2.
* elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for
functions that require r2 valid to use local entry.
(ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e1767fe..ea049b1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2019-06-19 Alan Modra <amodra@gmail.com> + + * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for + functions that require r2 valid to use local entry. + (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise. + 2019-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com> * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove. |