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.
Paths
| Differential D112643
[lld/mac] Don't crash on undefined symbols with --icf=all ClosedPublic Authored by thakis on Oct 27 2021, 11:41 AM.
Details
Summary ICF runs before relocation processing, but undefined symbol errors So just ignore Undefineds during ICF (instead of crashing) -- lld Fixes PR52330.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Oct 27 2021, 12:38 PM Closed by commit rG7f369304dfe9: [lld/mac] Don't crash on undefined symbols with --icf=all (authored by thakis). · Explain WhyOct 27 2021, 1:26 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 382735 lld/MachO/ICF.cpp
lld/test/MachO/invalid/undefined-symbol.s
|