Don't crash if we encounter a reference to an early discarded section
(such as .drectve). Instead, handle them the same way as sections
discarded by comdat merging, i.e. either print an error message or
(for debug sections) silently ignore the relocation.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
lld/COFF/Chunks.cpp | ||
---|---|---|
271 ↗ | (On Diff #123540) | If you move this piece of code immediately after auto *Sym = dyn_cast_or_null.., can't you simplify code a bit? You would have to write two fatal function calls with the same message, but I don't think that's not that bad. |