wasmx / wasm-chisel

Some useful utilities to transform WebAssembly binaries.
Apache License 2.0
56 stars 11 forks source link

Translator which replaces known imports with snippets #38

Open axic opened 5 years ago

axic commented 5 years ago

From: https://github.com/ewasm/ewasm-cleanup#libc-methods

Goal is to have a translator which takes a wasm module (called the "helper") and a list of imports. The current module is searched for the list of imports. If found, the import is removed and the function from the helper is copied in.

The first two to start with:

axic commented 5 years ago

Fastly has a similar tool: https://github.com/fastly/lucet/tree/master/lucet-builtins/wasmonkey

axic commented 3 years ago

This tool is now independent: https://github.com/jedisct1/wasmonkey