Gold has a newly added LDPT_GET_SYMBOLS_V3 callback that can
distinguish between a module that is not included in the link, and
one that is included but has its entire interface preempted by others.
Fixes PR26674.
Differential D17867
[gold] Handle modules that are not included in the link. ClosedPublic Authored by eugenis on Mar 3 2016, 2:01 PM.
Details
Diff Detail
Event Timelineeugenis updated this object. Comment Actions I'm not sure how to test this, other than with an explicit check for the gold version. Comment Actions This formatted more than what I was expecting. I am OK with this with the ifdef part fixed. Just wait for Teresa to comment on getFunctionIndexForFile.
eugenis edited edge metadata. Comment ActionsRemoved ifndef around LDPO_PIE. • rafael edited edge metadata. Comment ActionsLGTM, but please wait for Teresa to comment on there being any interaction between getFunctionIndexForFile and --start-lib/--end-lib. This revision is now accepted and ready to land.Mar 3 2016, 3:20 PM
Comment Actions
LGTM too. I reviewed PR26674, and it seems correct to me to handle this the same in getFunctionIndexForFile as in getModuleForFile. If we aren't including the object file in the link we don't care about any of its summary info.
Revision Contents
Diff 49782 tools/gold/gold-plugin.cpp
|
you need a ifndef, no?