Fix formatting.
[deliverable/binutils-gdb.git] / bfd / elf64-ia64.c
index ed9f8e3ec941c4450e5ef35eb4cd6b0bda800c81..cacfd6593fcd9ff00ad7c3f4910ca1881e9485c5 100644 (file)
@@ -1307,7 +1307,8 @@ elf64_ia64_hash_copy_indirect (xdir, xind)
 }
 
 static void
-elf64_ia64_hash_hide_symbol (xh)
+elf64_ia64_hash_hide_symbol (info, xh)
+     struct bfd_link_info *info ATTRIBUTE_UNUSED;
      struct elf_link_hash_entry *xh;
 {
   struct elf64_ia64_link_hash_entry *h;
@@ -3258,14 +3259,17 @@ elf64_ia64_relocate_section (output_bfd, info, input_bfd, input_section,
            }
          else if (h->root.type == bfd_link_hash_undefweak)
            undef_weak_ref = true;
-         else if (info->shared && !info->symbolic && !info->no_undefined)
+         else if (info->shared && !info->symbolic
+                  && !info->no_undefined
+                  && ELF_ST_VISIBILITY (h->other) == STV_DEFAULT)
            ;
          else
            {
              if (! ((*info->callbacks->undefined_symbol)
                     (info, h->root.root.string, input_bfd,
                      input_section, rel->r_offset,
-                     (!info->shared || info->no_undefined))))
+                     (!info->shared || info->no_undefined
+                      || ELF_ST_VISIBILITY (h->other)))))
                return false;
              ret_val = false;
              continue;
This page took 0.023505 seconds and 4 git commands to generate.