[LLVMbugs] [Bug 4530] New: llvm-ld does not merge debug information correctly

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Jul 10 12:50:07 PDT 2009


           Summary: llvm-ld does not merge debug information correctly
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-ld
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: haohui.mai at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=3169)
 --> (http://llvm.org/bugs/attachment.cgi?id=3169)
Test case

Debug information are messed up after llvm-ld. There are a number of problems:

1. There is only one compilation unit in the linked bitcode file, and all debug
information points to this compilation unit, which gives incorrect results on
source filenames.

2. The line number are messed up too. I didn't dig into it.

The result is still incorrect even with all optimizations disabled.

I think simply marking compilation unit as internal globals instead of link
once would solve problem No.1, if the code generator does not recognize
multiple main compilation unit, just clean up the flag would work.

However, I have no idea on how to deal with problem No.2.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list