This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Skip over symbols in un-parsed debug info sections
ClosedPublic

Authored by int3 on Mar 5 2021, 1:08 PM.

Details

Summary

clang appears to emit symbols in __debug_aranges, at least
for arm64... in the examples I've seen, it doesn't seem like those
symbols are referenced outside of __DWARF, so I think they're safe to
ignore. But hopefully @clayborg can confirm.

Diff Detail

Event Timeline

int3 created this revision.Mar 5 2021, 1:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 5 2021, 1:08 PM
int3 requested review of this revision.Mar 5 2021, 1:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 5 2021, 1:08 PM
int3 edited the summary of this revision. (Show Details)Mar 5 2021, 1:16 PM
clayborg accepted this revision.Mar 5 2021, 2:13 PM

yes, anything in the debug_aranges are safe to ignore as dsymutil will create a new debug_aranges and doesn't end up using any of the debug_aranges sections from the .o files and nothing from debug_aranges ends up in the debug map.

This revision is now accepted and ready to land.Mar 5 2021, 2:13 PM
This revision was landed with ongoing or failed builds.Mar 5 2021, 2:24 PM
This revision was automatically updated to reflect the committed changes.