This is an archive of the discontinued LLVM Phabricator instance.

[lld/mac] Don't crash on undefined symbols with --icf=all
ClosedPublic

Authored by thakis on Oct 27 2021, 11:41 AM.

Details

Reviewers
gkm
int3
Group Reviewers
Restricted Project
Commits
rG7f369304dfe9: [lld/mac] Don't crash on undefined symbols with --icf=all
Summary

ICF runs before relocation processing, but undefined symbol errors
are only emitted during relocation processing.

So just ignore Undefineds during ICF (instead of crashing) -- lld
will emit an error once ICF is done.

Fixes PR52330.

Diff Detail

Event Timeline

thakis created this revision.Oct 27 2021, 11:41 AM
Herald added a project: Restricted Project. · View Herald Transcript
thakis requested review of this revision.Oct 27 2021, 11:41 AM
int3 accepted this revision.Oct 27 2021, 12:38 PM
int3 added a subscriber: int3.

Thanks!

This revision is now accepted and ready to land.Oct 27 2021, 12:38 PM
int3 added a comment.Oct 27 2021, 12:38 PM

I guess this was because ICF didn't use to run before reloc processing

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2021, 1:26 PM