[PATCH v1] rust: arch/um: Fix loading Rust modules
Miguel Ojeda
miguel.ojeda.sandonis at gmail.com
Mon Oct 12 07:40:50 PDT 2026
On Sun, Oct 4, 2026 at 2:13 PM FUJITA Tomonori <tomo at flapping.org> wrote:
>
> arch/um/Makefile adds -Crelocation-model=pie to KBUILD_RUSTFLAGS. This
Hmm... That was intentionally added by David back in commit
905a77077573 ("rust: arch/um: Use 'pie' relocation mode under UML"):
UML expects a position independent executable for some reason, so tell
rustc to generate pie objects. Otherwise we get a bunch of relocations
we can't deal with in libcore.
So it seems David faced other relocation errors (?).
Cheers,
Miguel
More information about the linux-um
mailing list