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?
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