TEXTREL binaries are loaded without immutable on un-writeable sections.
authorderaadt <deraadt@openbsd.org>
Sun, 6 Nov 2022 12:00:20 +0000 (12:00 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 6 Nov 2022 12:00:20 +0000 (12:00 +0000)
commitd23cb5cdfb49313df5a4726a06417274ef34b0c0
treebe01b26e849b8650bb10d7e53d5253050c62d60b
parent94c519221d13919d7669f3497d008db19e956c14
TEXTREL binaries are loaded without immutable on un-writeable sections.
After text relocations are finished, these regions (in the binary) can become
immutable.
OPENBSD_MUTABLE section always overlaps writeable LOADs, so don't be afraid
of that case, it's covered.
libexec/ld.so/loader.c