2001-02-06 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 7 Feb 2001 06:19:58 +0000 (06:19 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 7 Feb 2001 06:19:58 +0000 (06:19 +0000)
* 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.

bfd/ChangeLog
bfd/elf64-alpha.c
bfd/elfxx-ia64.c

index edfdfbb8a4e563f89710f883b83007b26f061a93..599734e0e6e5cebf77363423975383029bfcb25e 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2001-02-06  Nick Clifton  <nickc@redhat.com>
 
        * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
index 197dcffa8dfaa4a72edf5630ffc04f1e23058bec..9808c8f2e31c3afbcf9202dadba60ecd1fa1373f 100644 (file)
@@ -240,8 +240,12 @@ alpha_elf_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)
index 6751e4acc1da3d161cbfce045dd80bd361a351b7..0ef08c7742d9669bbc1307c449ab229e7dc86253 100644 (file)
@@ -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)