https://sourceware.org/bugzilla/show_bug.cgi?id=28879
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
I am testing this:
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 6fa18d92007..a231bdabd28 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -1295,7 +1295,9 @@ _bfd_elf_merge_symbol (bfd *abfd,
hi->root.non_ir_ref_dynamic = true;
}
- if ((oldbfd->flags & BFD_PLUGIN) != 0
+ if (!h->root.non_ir_ref_dynamic
+ && !h->root.non_ir_ref_regular
+ && (oldbfd->flags & BFD_PLUGIN) != 0
&& hi->root.type == bfd_link_hash_indirect)
{
/* Change indirect symbol from IR to undefined. */
--
You are receiving this mail because:
You are on the CC list for the bug.