[llvm-bugs] [Bug 40532] New: Corrupt DWARF created when linking with ld.lld

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 30 09:07:12 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40532

            Bug ID: 40532
           Summary: Corrupt DWARF created when linking with ld.lld
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: jonasschievink at gmail.com
                CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org

Linking two object files together (created by rustc and gcc) results in an
output with corrupt debug info.

Running `objdump --dwarf-check -g <output>` on the linker output reports this
warning a few times:

objdump: Warning: Corrupt unit length (0x0) found in section .debug_info

When run on the object files before linking, no warning is issued. The
dwarf-validate tool of the gimli library agrees with this
(https://github.com/gimli-rs/gimli).

I've attached the output of LLD with --reproduce.

For more info, refer to
https://github.com/jonas-schievink/lldbug/releases/tag/lldrepro-min (but
lldrepro-min should already contain everything if I understood it correctly).

LLD version: LLD 7.0.1

-- 
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/20190130/e5cf13b7/attachment.html>


More information about the llvm-bugs mailing list