[ELF] - Fix error reporting with --strip-debug/--strip-all.
authorGeorge Rimar <grimar@accesssoftek.com>
Sat, 4 Nov 2017 08:20:30 +0000 (08:20 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Sat, 4 Nov 2017 08:20:30 +0000 (08:20 +0000)
commitddd2424929a569dddbed72374f949c9f4a583e5a
tree10a442e0b77ba8517738d002ea5cc99a87268368
parent448a3e57854b18d666e8851d0d7be09c293f6cd4
[ELF] - Fix error reporting with --strip-debug/--strip-all.

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.

Differential revision: https://reviews.llvm.org/D39550

llvm-svn: 317405
lld/ELF/Driver.cpp
lld/ELF/InputFiles.cpp
lld/test/ELF/conflict-debug-variable.s