search for: memory_base

Displaying 1 result from an estimated 1 matches for "memory_base".

2020 Aug 10
2
(wasm-ld) Any fundamental problems with linking a shared wasm library statically?
...ort, we can find the function's table index (add it to the table if it's not already added) and replace the import with the constant of the index. For GOT.mem imports it's similar, we find the location of the symbol relative to the module's memory base, then replace the import with `memory_base + offset`. For (2), in general it's not possible to run an arbitrary wasm function in link time, but I think relocation functions are basically just a list of statements (in a C-like language) `memory_base + <offset> = <address of symbol> + <constant>`. The RHS can also be `&...