[llvm-bugs] [Bug 38570] New: [WebAssembly] DWARF sections are invalid when LEB compression is applied (-O2)
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 14 16:30:45 PDT 2018
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: unassignedbugs at nondot.org
Reporter: ydelendik at mozilla.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180814/6b7aa21d/attachment.html>
More information about the llvm-bugs
mailing list