[PATCH][LTO] Fixup gold/linker-plugin symbol resolution

Richard Guenther rguenther@suse.de
Thu Apr 1 12:02:00 GMT 2010


On Wed, 31 Mar 2010, Cary Coutant wrote:

> > It seems that the symbol resolution gold and/or the linker-plugin
> > provides for commons is completely broken.  It also seems that the
> > linker-plugin code is now unmaintained (or rather that noone
> > understanding where the resolution comes from -- I only can
> > see a single assignment to it, entry->resolution = LDPR_UNKNOWN;,
> > wants to or is able to look into this bug).
> 
> Sorry, even though you cc'ed me on the bugzilla report, for some
> reason I didn't get any notification, so I'm just now seeing this (I
> even checked my spam folder). I'll take a look at this; it doesn't
> look difficult to fix. I presume that what you're looking for is for
> the object with the "winning" tentative definition to return
> LDPR_PREVAILING_DEF, and for the others to return LDPR_RESOLVED_IR.
> Right?

Yes, I would have expected the largest .comm to win and end up
as LDPR_PREVAILING_DEF, the others as LDPR_RESOLVED_IR.

Richard.


More information about the Gcc-patches mailing list