aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-04-30 01:05:18 +0000
committerAlan Modra <amodra@gmail.com>2013-04-30 01:05:18 +0000
commitb82970680130d28392656daf79dfa1b94aa553e0 (patch)
tree31d578bdb001ce9cf68f29e6d17949603420f346 /bfd/elflink.c
parentdee737d745c9f45f8e56fdcdf9b373f149267ed9 (diff)
downloadgdb-b82970680130d28392656daf79dfa1b94aa553e0.zip
gdb-b82970680130d28392656daf79dfa1b94aa553e0.tar.gz
gdb-b82970680130d28392656daf79dfa1b94aa553e0.tar.bz2
* elflink.c (bfd_elf_record_link_assignment): Dont make
STV_INTERNAL symbols STV_HIDDEN.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c3
1 files changed, 2 insertions, 1 deletions
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);
}