diff options
author | Alan Modra <amodra@gmail.com> | 2014-08-18 18:14:56 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-08-18 21:00:46 +0930 |
commit | 1009ef284f3932c41cff1158818c87821fe511fa (patch) | |
tree | b1f2efcc6332ddf96cdc4aa3a6c82ffe2ebfdd7f /bfd/elf64-ppc.c | |
parent | 1240be6b7d0a5604c4e3efe12c9e1d08ebc246be (diff) | |
download | gdb-1009ef284f3932c41cff1158818c87821fe511fa.zip gdb-1009ef284f3932c41cff1158818c87821fe511fa.tar.gz gdb-1009ef284f3932c41cff1158818c87821fe511fa.tar.bz2 |
PowerPC fix for ifunc broken by d1eca1e4
This probably could be fixed by making changes in relocate_section for
ifunc, but it's simpler to disable the optimisation for ifunc.
* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't attempt to
use dynrelocs for ifunc.
* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Similarly.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r-- | bfd/elf64-ppc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 0efc602..ca2dd4c 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -7002,6 +7002,7 @@ ppc64_elf_adjust_dynamic_symbol (struct bfd_link_info *info, executable on a global entry stub. A dynamic reloc can be used instead. */ if (h->pointer_equality_needed + && h->type != STT_GNU_IFUNC && !readonly_dynrelocs (h)) { h->pointer_equality_needed = 0; |