http://sourceware.org/bugzilla/show_bug.cgi?id=14272
--- Comment #13 from H.J. Lu <hjl.tools at gmail dot com> 2012-11-01 23:03:46
UTC ---
(In reply to comment #12)
> Should ld really be covering up this gcc bug?
I think this is a real linker bug since input is correct,
even if not optimized. My current code is:
/* If a plugin symbol is referenced from a non-IR file, mark
the symbol as undefined, except for symbol for linker
created section. */
if (h->root.non_ir_ref
&& (h->root.type == bfd_link_hash_defined
|| h->root.type == bfd_link_hash_defweak)
&& (h->root.u.def.section->flags & SEC_LINKER_CREATED) == 0
&& h->root.u.def.section->owner != NULL
&& (h->root.u.def.section->owner->flags & BFD_PLUGIN) != 0)
{
h->root.type = bfd_link_hash_undefined;
h->root.u.undef.abfd = h->root.u.def.section->owner;
}
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils