Project

General

Profile

« Previous | Next » 

Revision eac35edf

Added by katei (Yuta Saito) 5 months ago

[wasm] Stop using mprotect(PROT_NONE) on WASI

we had been using a stub weak definition of mprotect in wasm/missing.c
so far, but wasi-sdk 23 added mprotect emulation to wasi-libc1, so the
emulation is now linked instead. However, the emulation doesn't support
PROT_NONE and fails with ENOSYS, so we need to avoid calling mprotect
completely on WASI.

  1. https://github.com/WebAssembly/wasi-libc/commit/7528b13170462c82e367d91ae0ecead84e470ceb