From b82970680130d28392656daf79dfa1b94aa553e0 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 30 Apr 2013 01:05:18 +0000 Subject: [PATCH] * elflink.c (bfd_elf_record_link_assignment): Dont make STV_INTERNAL symbols STV_HIDDEN. --- bfd/ChangeLog | 5 +++++ bfd/elflink.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 06bdfe7..49e2e16 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2013-04-30 Alan Modra + + * elflink.c (bfd_elf_record_link_assignment): Dont make + STV_INTERNAL symbols STV_HIDDEN. + 2013-04-29 Nick Clifton * elflink.c (_bfd_elf_gc_mark_extra_sections): Remove mark from diff --git a/bfd/elflink.c b/bfd/elflink.c index 84ac1f2..363abed 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -573,7 +573,8 @@ bfd_elf_record_link_assignment (bfd *output_bfd, if (hidden) { bed = get_elf_backend_data (output_bfd); - h->other = (h->other & ~ELF_ST_VISIBILITY (-1)) | STV_HIDDEN; + if (ELF_ST_VISIBILITY (h->other) != STV_INTERNAL) + h->other = (h->other & ~ELF_ST_VISIBILITY (-1)) | STV_HIDDEN; (*bed->elf_backend_hide_symbol) (info, h, TRUE); } -- 2.7.4