Rust & pre/post MMU activation

Hi !
I’m use to work with executable that share pre/post MMU code, where I toy with __attribute__(section) in C and a hand-tailored link script to be sure each part is linked with the correct addresses.

How did you attack this in Rust ? I know a solution is to write the “pre MMU activation” part 100% position independent, so it doesn’t care where it is loaded, but I don’t know if that’s possible in Rust

Anyway, great work !
Best,
V.