https://bugs.llvm.org/show_bug.cgi?id=43934
Bug ID: 43934
Summary: [WebAssembly] undefined symbol: __heap_base
Product: lld
Version: unspecified
Hardware: Other
OS: other
Status: NEW
Severity: normal
Priority: P
Component: wasm
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
wasm-ld has code to define __heap_base, however it doesn't appear to be defined
when __heap_base is referenced.
Here's a reduced testcase; compile with -nostdlib:
```
void *volatile p;
extern void __heap_base;
void _start(void) {
p = &__heap_base;
}
```
I get this error:
```
$ clang -nostdlib test.c
wasm-ld: error: /tmp/s-01d300.o: undefined symbol: __heap_base
```
This comes up in wasi-libc, as of this PR:
https://github.com/CraneStation/wasi-libc/pull/114
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs