Currently LLD tries to use information about functions and variables location
taking it from debug sections. When --strip-* is given we discard such sections
and that breaks error reporting.
Patch stops discarding such sections and just removes them from InputSections list.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I don't think it is a good idea to remove debug sections using the garbage collector. That is unnecessarily complicated. You should simply remove debug sections from InputSections before markLive().
Comment Actions
LGTM
It's now much better.
ELF/Driver.cpp | ||
---|---|---|
1120–1122 ↗ | (On Diff #121443) | Just the first half should suffice. // We do not want to emit debug sections if --strip-all or -strip-debug are given. |