That's not what the parent was asking. They were asking if WASM has an FFI interface for runtimes that want to not execute the WASM code entirely sandboxed from the host, but rather want to allow you to dlload(2) code into the OS process hosting the WASM interpreter and call it through WASM ops.
Genuine question here: if you’re already going to be shipping native code, why would you need WebAssembly in the mix, especially if you’re not targeting a browser?
For example, if you want to execute "native" code in a restricted environment.
WebAssembly is quite fast when (jit)compiled. Therefore, it's very tempting to use it to embed extension logic.
Does WebAssembly or any of its runtimes provide a way to do this?