aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-08-21 03:45:44 +0000
committerAlan Modra <amodra@gmail.com>2013-08-21 03:45:44 +0000
commit00b7642b8a94a7661667d317b50da9fcb930e612 (patch)
tree1cd9a8a87a863fe4a2426a6fc9c3729cea7cfcb7 /bfd/elflink.c
parentd686b906dca9a8574db5d865976ef354ab8e9c7e (diff)
downloadgdb-00b7642b8a94a7661667d317b50da9fcb930e612.zip
gdb-00b7642b8a94a7661667d317b50da9fcb930e612.tar.gz
gdb-00b7642b8a94a7661667d317b50da9fcb930e612.tar.bz2
* elflink.c (_bfd_elf_define_linkage_sym): Don't set STV_INTERNAL
symbols to 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 5682db2..20371bc 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -85,7 +85,8 @@ _bfd_elf_define_linkage_sym (bfd *abfd,
h->def_regular = 1;
h->non_elf = 0;
h->type = STT_OBJECT;
- 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 = get_elf_backend_data (abfd);
(*bed->elf_backend_hide_symbol) (info, h, TRUE);