Ignore dynamic references on forced local symbols
[deliverable/binutils-gdb.git] / bfd / elflink.c
index 4c92a048cea8ebd359c5b5a4f8770061b671e875..e3751fa122cf936a3c277ddd36631a5b0d2647f2 100644 (file)
@@ -13277,7 +13277,7 @@ bfd_elf_gc_mark_dynamic_ref_symbol (struct elf_link_hash_entry *h, void *inf)
 
   if ((h->root.type == bfd_link_hash_defined
        || h->root.type == bfd_link_hash_defweak)
-      && (h->ref_dynamic
+      && ((h->ref_dynamic && !h->forced_local)
          || ((h->def_regular || ELF_COMMON_DEF_P (h))
              && ELF_ST_VISIBILITY (h->other) != STV_INTERNAL
              && ELF_ST_VISIBILITY (h->other) != STV_HIDDEN
This page took 0.026282 seconds and 4 git commands to generate.