The use case is the following: I am using the generated export Wasmtime bindings to execute a specific function through Wasmtime. This works fine for modules that have not been linked, but fails for modules that import any interfaces and need to be linked.
(First, the module must export a _start function. Adding a dummy _start bypasses this)
The error I'm seeing: "failed to find function export canonical_abi_free".
The Wasmtime bindings explicitly try to use the free function (when using strings in the function signatures), and apparently the linked module does not re-export it.
A couple of questions:
- is there a reason to explicitly require the
_start function before linking a module?
- is there a way to re-export the
canonical_abi_free function (and I assume the same is valid for the realloc function)?
Thanks!
cc @peterhuene