WALI
WALI copied to clipboard
Upstreaming Wasm32 target to Musl
- All things related to floating point environment,
fegetenvshould be stubbed to nops on Wasm.
- Definitions of
FUTEX_WAITand company were added toinclude/linux/futex.hin order to compile libcxx in LLVM. Not sure why these are not already defined.
- Printing of
long double(which maps to emulated fp128 on wasm32) should be ported over from Emscripten.
- Stub out
setjmpandlongjmpin MUSL instead of WALI imports.
- Pack
epoll_datastruct.
- Define WALI trampolines for functions where the header is changed to be a WALI import.
- Need to define a strategy for name-bound syscalls globally; could probably be factored to a single PR to do them for all calls globally.
__wasm_init_tlsis an LLVM builtin and the patch redoes__copy_tlsto forward to it.