mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-05-30 11:11:06 +00:00
start function
This commit is contained in:
@@ -26,6 +26,9 @@ pub fn optimize(
|
||||
}
|
||||
}
|
||||
|
||||
// If there is start function in module, it should stary
|
||||
module.start_section().map(|ss| stay.insert(Symbol::Function(ss as usize)));
|
||||
|
||||
// All symbols used in data/element segments are also should be preserved
|
||||
let mut init_symbols = Vec::new();
|
||||
if let Some(data_section) = module.data_section() {
|
||||
|
||||
Reference in New Issue
Block a user