aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-ia64.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-02-07 06:19:58 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-02-07 06:19:58 +0000
commit2719f880709e376b2d6623bbda1c3520ba6eb29e (patch)
tree9f0b414c360c8fd6abd00e84a7c26046c9ba42f6 /bfd/elfxx-ia64.c
parentf042532cc45b763942ffff337e6b20c9f864525b (diff)
downloadgdb-2719f880709e376b2d6623bbda1c3520ba6eb29e.zip
gdb-2719f880709e376b2d6623bbda1c3520ba6eb29e.tar.gz
gdb-2719f880709e376b2d6623bbda1c3520ba6eb29e.tar.bz2
2001-02-06 H.J. Lu <hjl@gnu.org>
* elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and internal symbols are not dynamic. * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
Diffstat (limited to 'bfd/elfxx-ia64.c')
-rw-r--r--bfd/elfxx-ia64.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c
index 6751e4a..0ef08c7 100644
--- a/bfd/elfxx-ia64.c
+++ b/bfd/elfxx-ia64.c
@@ -1181,8 +1181,12 @@ elfNN_ia64_dynamic_symbol_p (h, info)
if (h->dynindx == -1)
return false;
- if (ELF_ST_VISIBILITY (h->other) != STV_DEFAULT)
- return false;
+ switch (ELF_ST_VISIBILITY (h->other))
+ {
+ case STV_INTERNAL:
+ case STV_HIDDEN:
+ return false;
+ }
if (h->root.type == bfd_link_hash_undefweak
|| h->root.type == bfd_link_hash_defweak)