This is an archive of the discontinued LLVM Phabricator instance.

Fix a case where multiple symbols with zero size would cause duplicate entries in gsym files.
ClosedPublic

Authored by clayborg on Jun 28 2021, 4:34 PM.

Details

Summary

Symbol tables can have symbols with no size in mach-o files that were failing to get combined into a single entry. This resulted in many duplicate entries for the same address and made gsym files larger.

Diff Detail

Event Timeline

clayborg created this revision.Jun 28 2021, 4:34 PM
clayborg requested review of this revision.Jun 28 2021, 4:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2021, 4:34 PM
wallace accepted this revision.Jun 28 2021, 5:02 PM

makes sense

This revision is now accepted and ready to land.Jun 28 2021, 5:02 PM

btw, did you consider changing Range::intersects function so that it checks the case of empty ranges?

btw, did you consider changing Range::intersects function so that it checks the case of empty ranges?

Yes, but I would not consider any empty address range to be able to intersect with anything else, so I opted not to modify it.

This revision was landed with ongoing or failed builds.Jun 28 2021, 6:26 PM
This revision was automatically updated to reflect the committed changes.