]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR ld/12975
authorAlan Modra <amodra@gmail.com>
Tue, 25 Oct 2011 03:09:34 +0000 (03:09 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 25 Oct 2011 03:09:34 +0000 (03:09 +0000)
PR ld/13195
2011-10-17  Alan Modra  <amodra@gmail.com>
* 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.

bfd/ChangeLog
bfd/elf64-ppc.c

index aabe22d51e747ffb3e25dd1b3c9d1bac9597fbba..20793ed93d55616238540f3029fcfb3fc5b8039f 100644 (file)
@@ -1,6 +1,12 @@
 2011-10-25  Alan Modra  <amodra@gmail.com>
 
        Apply mainline patches
+       2011-10-17  Alan Modra  <amodra@gmail.com>
+       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.
+
        2011-10-11  Alan Modra  <amodra@gmail.com>
        PR binutils/13278
        * archive.c (bfd_generic_archive_p): Only check first element
index 5f5c81116097484aa2fea00464b995c4966f307c..837568cef186ef3be0c9210409e0cbd3b91a3d63 100644 (file)
@@ -5717,7 +5717,10 @@ ppc64_elf_gc_mark_dynamic_ref (struct elf_link_hash_entry *h, void *inf)
          || (!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;