[llvm-bugs] [Bug 35223] New: Debug information corrupted due to multiple .debug_str sections in relocatable output
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Nov 7 01:53:14 PST 2017
https://bugs.llvm.org/show_bug.cgi?id=35223
Bug ID: 35223
Summary: Debug information corrupted due to multiple .debug_str
sections in relocatable output
Product: lld
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: jh7370.2008 at my.bristol.ac.uk
CC: llvm-bugs at lists.llvm.org
Created attachment 19376
--> https://bugs.llvm.org/attachment.cgi?id=19376&action=edit
Reproducible package
This is a regression caused by r317406. Repro is attached.
DWARF consumers only ever expect there to be one .debug_str section, as there
is nothing in the DWARF specification that identifies which section to use for
debug strings, beyond the section name.
Following r317406, in relocatable output, LLD does not combine .debug_str
sections. This means that attempts to use tools such as llvm-dwarfdump can
result in invalid output. For example, with the attached reproducible, running
"llvm-dwarfdump -debug-info test.ro" will result in the wrong values for the
DW_AT_name and DW_AT_comp_dir attributes in the first CU.
It's worth pointing out that because the two sections will eventually get
merged in the final link, this is only a problem with the intermediate
relocatable object.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171107/0b7f06eb/attachment.html>
More information about the llvm-bugs
mailing list