[LLVMbugs] [Bug 9995] New: Malformed DWARF from llc?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 23 15:33:50 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=9995

           Summary: Malformed DWARF from llc?
           Product: libraries
           Version: 2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: markleone at gmail.com
                CC: llvmbugs at cs.uiuc.edu


It looks like llc might be producing malformed DWARF debug info.  I'm no DWARF
expert, so I'm having trouble diagnosing it.  Here's an example:  compile this
to LLVM IR with "clang -c -g -emit-llvm":

  void bar();
  void foo() { bar(); }    

Then generate an object file via "llc" and "as".  Running "dumpbin" on the
resulting object file (linux elf-64) gives errors like:

  AT of 16359 (0x3fe7) is unknown to dwarfdump. Continuing. 
  ...
  dwarfdump ERROR:  dwarf_srclines:  DW_DLE_ATTR_FORM_BAD (114)

There aren't any issues if the object file is generated directly by clang.  But
I need to preserve debug info from LLVM IR through llc (scenario: use clang to
compile library code with debug info, generate additional IR and link it with
library IR, then finish codegen with llc and as).  Thanks in advance for any
suggestions.

-- 
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