Stream: cranelift

Topic: PIC, GOT and PLT in cranelift_jit


view this post on Zulip Adrian Willenbücher (Feb 06 2025 at 14:40):

Hi everyone!
I'm trying to understand why cranelift_jit – JITModule in particular – supports generating PIC and building a GOT and PLT. Is the intent behind this that JITed code can later be moved around in memory? Or serialized and loaded into another process? Or is it "just" to allow hotswapping?

view this post on Zulip bjorn3 (Feb 06 2025 at 21:16):

It is just for hotswapping. I might redesign cranelift_jit from scratch at some point and maybe in the process move all hotswapping support out of it into rustc_codegen_cranelift (which is the only user of the hotswapping functionality that I know of).


Last updated: Feb 27 2025 at 23:03 UTC