[llvm-bugs] [Bug 37555] New: [WebAssembly] Segment->OutputSeg is nullptr at DefinedData::getVirtualAddress
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue May 22 12:55:49 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37555
Bug ID: 37555
Summary: [WebAssembly] Segment->OutputSeg is nullptr at
DefinedData::getVirtualAddress
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: WebAssembly
Assignee: unassignedbugs at nondot.org
Reporter: ydelendik at mozilla.com
CC: llvm-bugs at lists.llvm.org, sbc at chromium.org
The lld's getVirtualAddress() fails for function static locals when debug
information is enabled in object file.
The test case compiled from C:
struct S {
int i; int j;
};
void test(struct S *i) {
i->i ^= i->j;
}
void start() {
static struct S s = { 1, 2 };
test(&s);
}
void _start() { }
// `clang-7.0 --target=wasm32-unknown-unknown-wasm test.c -g -c -o test.o`
The command `lld -flavor wasm test.o -o test.wasm` fails at
https://github.com/llvm-mirror/lld/blob/f8a91f09fc90265ce7f104ed4c0e4aebcfedc693/wasm/Symbols.cpp#L155
due to Segment->OutputSeg being NULL.
--
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/20180522/39ea259b/attachment.html>
More information about the llvm-bugs
mailing list