pr12975, pr13195
Alan Modra
amodra@gmail.com
Mon Oct 17 08:28:00 GMT 2011
Fixes powerpc64-linux +FAIL: ld-elf/pr12975
PR ld/12975
PR ld/13195
* elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Apply 2011-09-15
and 2011-09-29 bfd_elf_gc_mark_dynamic_ref_symbol changes here too.
Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.365
diff -u -p -r1.365 elf64-ppc.c
--- bfd/elf64-ppc.c 10 Oct 2011 13:21:07 -0000 1.365
+++ bfd/elf64-ppc.c 17 Oct 2011 07:08:53 -0000
@@ -5717,7 +5717,10 @@ ppc64_elf_gc_mark_dynamic_ref (struct el
|| (!info->executable
&& eh->elf.def_regular
&& ELF_ST_VISIBILITY (eh->elf.other) != STV_INTERNAL
- && ELF_ST_VISIBILITY (eh->elf.other) != STV_HIDDEN)))
+ && ELF_ST_VISIBILITY (eh->elf.other) != STV_HIDDEN
+ && (strchr (eh->elf.root.root.string, ELF_VER_CHR) != NULL
+ || !bfd_hide_sym_by_version (info->version_info,
+ eh->elf.root.root.string)))))
{
asection *code_sec;
struct ppc_link_hash_entry *fh;
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list