Add support to the linker for 'PT_OPENBSD_MUTABLE' segment type.
This needs a test. You may merge it with openbsd-randomize.s and possibly rename the test file.
The OpenBSD section/program header types are settled? I think the kernel has no usage yet.
Hope that David's comments in https://lobste.rs/s/wck0g4/openbsd_immutable_userland_mappings are useful ;-)
It seems that OpenBSD is adding more and more OS specific program headers. The pace is kinda fast.
It's true that GNU is adding a lot program headers as well but many have gain support from many other OSes....
I think we can wait a bit before committing to add this permanent thing..
If one wants to play with PT_OPENBSD_MUTABLE, in a PHDRS command, a program header can have a numeric type (https://sourceware.org/binutils/docs/ld/PHDRS.html#:~:text=expression)...