Currently CL generated calls that are absolute. See example at https://github.com/bytecodealliance/wasmtime/pull/1931#issuecomment-654432484 .
So a good idea to convert them into relative PIC-style calls. Is it what CL is capable to do atm?
@Yury Delendik I think that's what dan mentioned about how ideally those relocation for intra-module calls are all relocated as relative offsets
so we can apply the relocations after cranelift is done, but before we finish the elf image
so they're sort of "apply once" relocations that are forgotten when we cache because they're already resolved
yes, I could not find an easy way
if they're absolute addresses right now though there's not much we can do about that
@Alex Crichton let me know if it will be useful to setup a meeting to discuss the PR
will do!
I don't think now's the right time to do relocation stuff on the PR though
Last updated: Nov 22 2024 at 16:03 UTC