[llvm-bugs] [Bug 37735] New: partial linking results in corrupt debug info

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 7 08:06:33 PDT 2018


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

            Bug ID: 37735
           Summary: partial linking results in corrupt debug info
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: markj at FreeBSD.org
                CC: llvm-bugs at lists.llvm.org

lld doesn't appear to do any processing of relocations when performing partial
linking.  This causes concrete problems with, e.g., debug info.

I'll attach a couple of sample object files in a follow-up comment.  The gist
of the problem is that both object files contain DIEs with a DW_AT_stmt_list
attribute, and their values are relocated against the address of the
.debug_line section.  When the .debug_line sections are concatenated in the
output object file, the attribute values don't get updated accordingly.

-- 
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/20180607/7cce683c/attachment.html>


More information about the llvm-bugs mailing list