This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Preserve the size of common symbols
ClosedPublic

Authored by int3 on Oct 13 2022, 8:27 AM.

Details

Reviewers
thakis
Group Reviewers
Restricted Project
Commits
rG922346ef052f: [lld-macho] Preserve the size of common symbols
Summary

We never noticed this before because the only time the size gets emitted is via
the linker map...

Diff Detail

Event Timeline

int3 created this revision.Oct 13 2022, 8:27 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 13 2022, 8:27 AM
int3 requested review of this revision.Oct 13 2022, 8:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2022, 8:27 AM
thakis accepted this revision.Oct 13 2022, 11:09 AM
thakis added a subscriber: thakis.

😀

This revision is now accepted and ready to land.Oct 13 2022, 11:09 AM

(out of interest, do you see common symbols in use in practice?)

int3 added a comment.Oct 13 2022, 12:06 PM

Just ran a link on a fairly large dylib and the addCommon code path wasn't hit at all. So I guess it's not super common. I just noticed this issue while writing the test for the map file...

This revision was landed with ongoing or failed builds.Oct 13 2022, 1:45 PM
This revision was automatically updated to reflect the committed changes.