@fitzgen (he/him) if you're curious --return-call-ref is the flag in wasm-tools component new and wasm-component-ld which uses call_ref for indirect shims. If you compile with -Clink-arg=--import-memory then that's what skips most shims
https://github.com/bytecodealliance/wasm-tools/pull/2598
and https://github.com/bytecodealliance/wasm-tools/pull/2599
thanks!
Last updated: Nov 19 2026 at 20:05 UTC