From ac6f50a1e8f85daed1c13eedee914ea8d8bcbb84 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 11 Nov 2013 13:46:26 +1030 Subject: [PATCH] PowerPC64 ELFv2, allocate dynreloc space for ifunc (cherry picked from commit 14b5f73fac0e34c2fca81aa0dfbc9c7eebc922f2) --- bfd/ChangeLog | 3 +++ bfd/elf64-ppc.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 10e4038884e..84f213ee0a5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,6 +1,9 @@ 2013-11-15 Alan Modra Apply changes from mainline to 2.24 + 2013-11-11 Alan Modra + * elf64-ppc.c (allocate_dynrelocs): Revert 2013-11-04 change. + 2013-11-11 Ulrich Weigand * elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_REFERENCES_LOCAL here, not SYMBOL_CALLS_LOCAL. diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 44af20ad9bf..bf13a5da6b1 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -9417,8 +9417,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf) if (eh->dyn_relocs == NULL || (!htab->elf.dynamic_sections_created - && (h->type != STT_GNU_IFUNC - || !htab->opd_abi))) + && h->type != STT_GNU_IFUNC)) return TRUE; /* In the shared -Bsymbolic case, discard space allocated for -- 2.47.3