PR ld/12365
[deliverable/binutils-gdb.git] / bfd / elflink.c
index 3a4d22c4cf873e8591417f5dee4dfcd09b23609b..082355d72e83b4e3de05dbe26fc9ce5c5b959612 100644 (file)
@@ -1427,7 +1427,10 @@ _bfd_elf_merge_symbol (bfd *abfd,
   /* Skip weak definitions of symbols that are already defined.  */
   if (newdef && olddef && newweak)
     {
-      *skip = TRUE;
+      /* Don't skip new non-IR weak syms.  */
+      if (!((oldbfd->flags & BFD_PLUGIN) != 0
+           && (abfd->flags & BFD_PLUGIN) == 0))
+       *skip = TRUE;
 
       /* Merge st_other.  If the symbol already has a dynamic index,
         but visibility says it should not be visible, turn it into a
This page took 0.032075 seconds and 4 git commands to generate.