wasmx / wasm-chisel

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

Module to replace a function with an import #139

Closed jakelang closed 5 years ago

jakelang commented 5 years ago

Requested by cdetrio

Example:

chisel replaceFuncWithImport --funcName "$memcpy" --import "env.$memcpy"

input:
  * a wasm module with a named function (i.e. a function body in the wasm code)
output:
  * the wasm module where the named function is an import instead, and the function body is deleted
axic commented 5 years ago

Duplicate of #39 ?

jakelang commented 5 years ago

@axic you're right. closing.