Skip to content

wasm-encoder relocation data generation #2405

Open

Description

@daxpedda

This is a feature request to add an equivalent for wat2wasm --relocatable to wasm-tools for feature parity.

I'm still stuck with wabt to be able to generate Wasm object files from WAT to link against.

Activity

  1. alexcrichton commented on Dec 18, 2025

    @alexcrichton
    Member

    You might be interested in WebAssembly/tool-conventions#258 which has some related discussion to this. Otherwise though personally I'm not familiar enough with --relocatable to say much about it. My impression is that this would ideally be a text-format-based annotation to avoid the need to add flags to the text->binary transform (which ideally is a function without parameters other than the text IMO).

  2. daxpedda commented on May 25, 2026

    @daxpedda
    Author

    @Spxg has written an implementation for our use-case: rwat. It turns out that doing this externally with wasm-tools libraries is quite the messy workaround.

    Our next step would be to implement the complete proposed spec and I would really prefer a cleaner implementation. Would wasm-tools be up for an experimental implementation? E.g. like Wasm proposals that have no yet reached stage 4?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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