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: unassignedb...@nondot.org
          Reporter: jonasschiev...@gmail.com
                CC: llvm-bugs@lists.llvm.org, peter.sm...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to