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
Paths
| Differential D89444
[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 TimelineThis revision is now accepted and ready to land.Oct 14 2020, 8:17 PM Closed by commit rGf9fb9da36c34: [dsymutil] Fix handling of aliases to private external symbols (authored by JDevlieghere). · Explain WhyOct 14 2020, 8:19 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 298286 llvm/test/tools/dsymutil/ARM/private-extern-alias.test
llvm/test/tools/dsymutil/Inputs/private/tmp/private_extern/private_extern.o
llvm/test/tools/dsymutil/Inputs/private/tmp/private_extern/private_extern.out
llvm/tools/dsymutil/MachODebugMapParser.cpp
|
bool AliasToPrivateExternal = (SymType & MachO::N_PEXT);
if ((Section == MainBinary.section_end() || Section->isText()) && ! AliasToPrivateExternal)
?