Re:Rust support in the Linux kernel
by woodruffw on Wednesday December 08, 2021 @04:50PM
(#29490986)
Linux has not had mainline support for s390 since Linux 4.1 (6 years ago). Only s390x is left.
You can still run 31-bit s390 usermode binaries on an s390x kernel, but that's a different beast.
>You can still run 31-bit s390 usermode binaries on an s390x kernel
Ah thanks, I didn't realize that was possible. I'm no where near rich and/or old enough to have ever encountered an s390 machine IRL :)
You can emulate it using Hercules. When searching I found plenty of guides showing how to set it up. I'm not linking to any in particular, because frankly I have never tried them so I don't know which one you should follow.
AFAIK, s390 also has 8-bit bytes. The "31 bits" is the pointer size; IIRC, it's actually 32 bits, but with one bit reserved for compatibility with its even older predecessors.
This is partially what caused the shitstorm when the python Cryptography library took a hard dependency on rust to compile:
https://github.com/pyca/cryptography/issues/5771