Mohamed Khaled

Results 6 comments of Mohamed Khaled

@bjorn3 I have been trying to wrap my head around this for a while now. So this is happening because the got and plt entries for a given function get...

@bjorn3 I'm trying to understand why a PLT entry is always created for each function declaration in the module in pic mode. I have some questions: - Where exactly in...

If I got it right, for the hotswapping we `declare_function` once and then we can (re)define that function through this sequence: (`prepare_for_function_redefine`) + `define_function` + `finalize_definitions` + `get_finalized_function` which compiles/loads...

Oh I believe I got it now, this is done through `get_address` that returns the PLT entry for hotswapped mode instead of the actual function pointer. This hotswapping is probably...

I think it just returns the pointer to the allocated memory where the function was loaded unless I missed some other indirection :) https://github.com/bytecodealliance/wasmtime/blob/main/cranelift/jit/src/backend.rs#L379

Thanks alot @bjorn3 for all the support :heart:. Feel free to close the issue if you have something that duplicates the original problem. I saw your suggestion in https://github.com/bytecodealliance/wasmtime/issues/4986 which...