This is an archive of the discontinued LLVM Phabricator instance.

[dsymutil] Fix handling of aliases to private external symbols
ClosedPublic

Authored by JDevlieghere on Oct 14 2020, 8:09 PM.

Details

Summary

dsymutil was incorrectly ignoring aliases to private extern symbols in the MachODebugMapParser. This resulted in spurious warnings about not being able to find symbols.

rdar://49652389

Diff Detail

Event Timeline

JDevlieghere created this revision.Oct 14 2020, 8:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2020, 8:09 PM
JDevlieghere requested review of this revision.Oct 14 2020, 8:09 PM
friss accepted this revision.Oct 14 2020, 8:17 PM

LGTM

This revision is now accepted and ready to land.Oct 14 2020, 8:17 PM
aprantl added inline comments.Oct 16 2020, 1:29 PM
llvm/tools/dsymutil/MachODebugMapParser.cpp
564

bool AliasToPrivateExternal = (SymType & MachO::N_PEXT);
if ((Section == MainBinary.section_end() || Section->isText()) && ! AliasToPrivateExternal)

?