aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-hppa.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-11-14 14:24:34 +0000
committerNick Clifton <nickc@redhat.com>2013-11-14 14:24:34 +0000
commit31fc8a0b2f4eaf15155d5b02b8017220c32aacbd (patch)
tree4bfbd3608d4ba002bdd9126b1d74b2f70d16ea5d /bfd/elf32-hppa.c
parent403cb6b138c38faf72f7abc034db3505b9bdb82f (diff)
downloadgdb-31fc8a0b2f4eaf15155d5b02b8017220c32aacbd.zip
gdb-31fc8a0b2f4eaf15155d5b02b8017220c32aacbd.tar.gz
gdb-31fc8a0b2f4eaf15155d5b02b8017220c32aacbd.tar.bz2
PR ld/16082
* elf32-hppa.c (elf32_hppa_hide_symbol): Remove old version information when forcing a symbol to be local.
Diffstat (limited to 'bfd/elf32-hppa.c')
-rw-r--r--bfd/elf32-hppa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c
index 7d1725f..df25ac9 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. */