PR ld/16082
authorNick Clifton <nickc@redhat.com>
Thu, 14 Nov 2013 14:24:34 +0000 (14:24 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 14 Nov 2013 14:24:34 +0000 (14:24 +0000)
* elf32-hppa.c (elf32_hppa_hide_symbol): Remove old version
information when forcing a symbol to be local.

bfd/ChangeLog
bfd/elf32-hppa.c

index aa4595a230716c28c263337bd5b817ca42e4b659..a75204acbc460c79d6d1eb8a70bff6b83b517f25 100644 (file)
@@ -1,3 +1,9 @@
+2013-11-14  Guy Martin <gmsoft@tuxicoman.be>
+
+       PR ld/16082
+       * elf32-hppa.c (elf32_hppa_hide_symbol): Remove old version
+       information when forcing a symbol to be local.
+
 2013-11-13  Yufeng Zhang  <yufeng.zhang@arm.com>
 
        * elfnn-aarch64.c (elfNN_aarch64_howto_table): Use
index 7d1725fa067a8943b947bb15c5079fe08f256241..df25ac903c870982222160314cbe5c7c8d9ce9b7 100644 (file)
@@ -1771,6 +1771,10 @@ elf32_hppa_hide_symbol (struct bfd_link_info *info,
          _bfd_elf_strtab_delref (elf_hash_table (info)->dynstr,
                                  eh->dynstr_index);
        }
+
+      /* PR 16082: Remove version information from hidden symbol.  */
+      eh->verinfo.verdef = NULL;
+      eh->verinfo.vertree = NULL;
     }
 
   /* STT_GNU_IFUNC symbol must go through PLT.  */