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
- Build Status
Buildable 12321 Build 12321: arc lint + arc unit
Event Timeline
Comment Actions
LGTM
lld/COFF/Chunks.cpp | ||
---|---|---|
271 | 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. |
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.