CVSROOT:        /cvs
Module name:    src
Changes by:     v...@cvs.openbsd.org    2022/11/25 07:56:56

Modified files:
        libexec/ld.so/mips64: Makefile.inc 
Added files:
        libexec/ld.so/mips64: ld.script 

Log message:
Add ld.so linker script for mips64

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 deraadt@

Reply via email to