When a TEXTREL binary is loaded, non-writeable LOADs are not made immutable
authorderaadt <deraadt@openbsd.org>
Sun, 6 Nov 2022 09:25:39 +0000 (09:25 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 6 Nov 2022 09:25:39 +0000 (09:25 +0000)
commit493e9f46f337e1868d307be858ac030ad39353df
treeb9007e27010d2170a7631cfee048aee7df23de0a
parenta125fdb05e49facff67c84ba985f88bbe109e77e
When a TEXTREL binary is loaded, non-writeable LOADs are not made immutable
because a loader may want to perform text relocations wrapped inside
mprotect permission flips.  So static TEXTREL binaries need to perform
this operation themselves, at this fairly late point.
ok kettenis
lib/libc/dlfcn/init.c