mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-11 23:31:02 +00:00
Externalize mem ops
This commit is contained in:
+2
-2
@@ -14,8 +14,8 @@ fn main() {
|
||||
}
|
||||
|
||||
let module = wasm_utils::externalize(
|
||||
parity_wasm::deserialize_file(&args[1]).expect("Module to deserialize ok"),
|
||||
vec!["_free", "_malloc"],
|
||||
parity_wasm::deserialize_file(&args[1]).expect("Module to deserialize ok"),
|
||||
vec!["_free", "_malloc", "_memcpy", "_memset", "_memmove"],
|
||||
);
|
||||
|
||||
parity_wasm::serialize_to_file(&args[2], module).expect("Module to serialize ok");
|
||||
|
||||
Reference in New Issue
Block a user