WALI icon indicating copy to clipboard operation
WALI copied to clipboard

Upstreaming Wasm32 target to Musl

Open arjunr2 opened this issue 2 months ago • 8 comments

arjunr2 avatar Nov 04 '25 20:11 arjunr2

  1. All things related to floating point environment, fegetenv should be stubbed to nops on Wasm.

titzer avatar Nov 06 '25 21:11 titzer

  1. Definitions of FUTEX_WAIT and company were added to include/linux/futex.h in order to compile libcxx in LLVM. Not sure why these are not already defined.

titzer avatar Nov 06 '25 21:11 titzer

  1. Printing of long double (which maps to emulated fp128 on wasm32) should be ported over from Emscripten.

titzer avatar Nov 06 '25 21:11 titzer

  1. Stub out setjmp and longjmp in MUSL instead of WALI imports.

titzer avatar Nov 06 '25 22:11 titzer

  1. Pack epoll_data struct.

titzer avatar Nov 06 '25 22:11 titzer

  1. Define WALI trampolines for functions where the header is changed to be a WALI import.

titzer avatar Nov 06 '25 22:11 titzer

  1. 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.

titzer avatar Nov 06 '25 22:11 titzer

  1. __wasm_init_tls is an LLVM builtin and the patch redoes __copy_tls to forward to it.

titzer avatar Nov 06 '25 22:11 titzer