CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2017/10/24 14:06:54
Modified files:
sys/arch/amd64/conf: ld.script
sys/arch/arm64/conf: kern.ldscript
sys/arch/i386/conf: ld.script
Log message:
In ld scripts, an output section with no input sections is always marked
writable, so the stub gap.o has .rodata flagged as RW. Instead of letting
that propagate to the final :rodata PT_LOAD section, force the flags on
the section to 4 (==PF_R) in the PHDRS block.
problem noted by mortimer@
ok deraadt@ kettenis@