Don't complain undefined weak dynamic reference
[deliverable/binutils-gdb.git] / bfd / elflink.c
index 81e667dab0cd7c223cb55c30a0f90900a8b604ca..ddeaa08d505fd55838dc1bef4b5e136a2c07207a 100644 (file)
@@ -9776,7 +9776,7 @@ elf_link_output_extsym (struct bfd_hash_entry *bh, void *data)
 
       /* If we are reporting errors for this situation then do so now.  */
       if (!ignore_undef
-         && h->ref_dynamic
+         && h->ref_dynamic_nonweak
          && (!h->ref_regular || flinfo->info->gc_sections)
          && !elf_link_check_versioned_symbol (flinfo->info, bed, h)
          && flinfo->info->unresolved_syms_in_shared_libs != RM_IGNORE)
This page took 0.025227 seconds and 4 git commands to generate.