Hi, sorry if my question looks silly. I need to automatically detect the offset of a specific string variable in the data section. Is there any way to detect it from wasm module with Cranelift or I have to use the compiler which has translated the code to wasm module?
If you export a global variable the wasm global with the name of this global variable will contain the offset. If you don't export it I'm not sure you can access it.
Last updated: Dec 23 2024 at 13:07 UTC