This is an archive of the discontinued LLVM Phabricator instance.

[lld/mac] Don't crash on absolute symbols in order files
ClosedPublic

Authored by thakis on Jul 22 2021, 6:48 PM.

Details

Reviewers
gkm
int3
Group Reviewers
Restricted Project
Commits
rG2c508cf583f8: [lld/mac] Don't crash on absolute symbols in order files
Summary

Absolute symbols have a nullptr isec. buildInputSectionPriorities()
would defer isec, causing crashes. Ordering absolute symbols doesn't
make sense, so just ignore them. This seems to match ld64.

Diff Detail

Event Timeline

thakis created this revision.Jul 22 2021, 6:48 PM
Herald added a project: Restricted Project. · View Herald Transcript
thakis requested review of this revision.Jul 22 2021, 6:48 PM
int3 accepted this revision.Jul 23 2021, 7:57 AM
int3 added a subscriber: int3.

Good catch!

This revision is now accepted and ready to land.Jul 23 2021, 7:57 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2021, 8:33 AM