From 31fc8a0b2f4eaf15155d5b02b8017220c32aacbd Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 14 Nov 2013 14:24:34 +0000 Subject: [PATCH] PR ld/16082 * elf32-hppa.c (elf32_hppa_hide_symbol): Remove old version information when forcing a symbol to be local. --- bfd/ChangeLog | 6 ++++++ bfd/elf32-hppa.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index aa4595a230..a75204acbc 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2013-11-14 Guy Martin + + 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 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Use diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c index 7d1725fa06..df25ac903c 100644 --- a/bfd/elf32-hppa.c +++ b/bfd/elf32-hppa.c @@ -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. */ -- 2.34.1