summaryrefslogtreecommitdiff
path: root/usr.bin/lex
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2022-11-08 06:55:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2022-11-08 06:55:54 +0000
commitaa2ad2bcf5bce6830d0e6086baa977abd9ecf9da (patch)
tree9b4d311840eef1446d9c090a6e3127ceacc718fe /usr.bin/lex
parent8e8b1462cb0bc36cd6c11ab5ca61e0b50ff079ff (diff)
Since the introduction of automatic immutable from the kernel, the munmap()
of ld.so boot.text region is now (silently) failing because the region is contained within the text LOAD, which is immutable. So create a new btext LOAD with flags PF_X|PF_R|PF_OPENBSD_MUTABLE, and place all boot.text objects in there. This LOAD must also be page-aligned so it doesn't skip unmapping some of the object region, previously it was hilariously unaligned. ok kettenis and guenther seemed to like it also This one is for riscv64, tested by jca
Diffstat (limited to 'usr.bin/lex')
0 files changed, 0 insertions, 0 deletions