[ELF] - Teach LLD to use information from .debug_str for error reporting.
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 3 Nov 2017 08:04:27 +0000 (08:04 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 3 Nov 2017 08:04:27 +0000 (08:04 +0000)
commit5b262363b46d9dab718e3b5074fb21c90123e1ec
tree93662bb261466b197a2df101f89294a9f80933bd
parent9befcd7d8dee99507909507d90d6315b848ea75a
[ELF] - Teach LLD to use information from .debug_str for error reporting.

Recently we teached LLD to report line numbers for duplicate variables
definitions, though currently LLD is unable to do that for case when
strings are not built in .debug_info, but stored in .debug_str instead.
That is because out LLDDwarfObj does not handle .debug_str yet.
Patch fixes that.

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

llvm-svn: 317305
lld/ELF/GdbIndex.cpp
lld/ELF/GdbIndex.h
lld/test/ELF/conflict-debug-variable2.s [new file with mode: 0644]