Skip to content

Using linked module from the Wasmtime generated code results in missing canonical_abi_free export #59

@radu-matei

Description

@radu-matei

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions