PR ld/12365
[deliverable/binutils-gdb.git] / bfd / elflink.c
index 9ccc841da215d2394a2ed7740f8ee425d01c6d72..227550380520d9de6270e37f3db3e02408c625c6 100644 (file)
@@ -8704,6 +8704,11 @@ elf_link_output_extsym (struct elf_link_hash_entry *h, void *data)
               || h->root.type == bfd_link_hash_defweak)
           && elf_discarded_section (h->root.u.def.section))
     strip = TRUE;
+  else if ((h->root.type == bfd_link_hash_undefined
+           || h->root.type == bfd_link_hash_undefweak)
+          && h->root.u.undef.abfd != NULL
+          && (h->root.u.undef.abfd->flags & BFD_PLUGIN) != 0)
+    strip = TRUE;
   else
     strip = FALSE;
 
This page took 0.024597 seconds and 4 git commands to generate.