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

            Bug ID: 38570
           Summary: [WebAssembly] DWARF sections are invalid when LEB
                    compression is applied (-O2)
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedb...@nondot.org
          Reporter: ydelen...@mozilla.com
                CC: llvm-bugs@lists.llvm.org

(Created from https://reviews.llvm.org/D47901)

Currently, when -O2 linker optimization applied, the function bodies in the
code section are transformed (due to LEB compression). Which makes .debug_line
invalid -- data/references point to wrong location, and by its nature,
.debug_line section references is not easy to "relocate" since it is using
delta compression scheme.

The proposed in D47901 seems to complex. The workarounds now:
- don't use -O2 option (and rely on external tools to do compression),
- strip incorrect debug/DWARF sections

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to