Stream: wasmtime

Topic: ✔ custom section offset


view this post on Zulip julia (Oct 24 2022 at 02:53):

I have defined a custom section using the below code in my program.
#[link_section = "new-section"] pub static FIRST: [u8; 13] = *b"Hello, World!";
After compiling it to wasm, I used wasm-objdump to find the custom header related offset in the wasm module.

Right now, I want to know is there any relation between the offset of the custom data in the wasm binary and the offset of the data in linear memory?

view this post on Zulip julia (Oct 24 2022 at 07:50):

I could find the solution, so close it!

view this post on Zulip Notification Bot (Oct 24 2022 at 07:50):

julia has marked this topic as resolved.


Last updated: Nov 22 2024 at 16:03 UTC