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. eugenis on Mar 3 2016, 2:01 PM. Authored by
Details
Diff Detail
Event TimelineComment 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.
Comment Actions Removed ifndef around LDPO_PIE. Comment Actions LGTM, but please wait for Teresa to comment on there being any interaction between getFunctionIndexForFile and --start-lib/--end-lib.
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. |
you need a ifndef, no?