mirror of https://github.com/WebAssembly/wasi-libc
Browse Source
This commit effectively drops the support of older wasm-ld. (LLVM <15.0.7). We have two relevant use cases: * `memory.grow` use outside of malloc (eg. used by polyfill preview1 binaries) * `--init-memory` to somehow preallocate heap (eg. avoid dynamic allocations, especially on small environments) While https://github.com/WebAssembly/wasi-libc/pull/377 fixed the former, it broke the latter if you are using an older LLVM, which doesn't provide the `__heap_end` symbol, to link your module. As we couldn't come up with a solution which satisfies all parties, this commit simply makes it require new enough LLVM which provides `__heap_end`. After all, a link-time failure is more friendly to users than failing later in a subtle way.sunfishcode/dso-main
YAMAMOTO Takashi
1 year ago
committed by
GitHub
4 changed files with 41 additions and 24 deletions
Loading…
Reference in new issue