CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2019/01/25 11:13:13
Modified files:
libexec/ld.so : library_mquery.c
Log message:
On i386, ensure that the first PT_LOAD segment is below the W^X
line unless it is writable.
lld places read-only sections below the gap so this is needed
to be able to retain W^X with lld. Note however the read-only
sections below the W^X line are now executable on pre-NX
machines and a possible source of gadgets. This is a change
from Gnu ld where RO sections were ordered above the W^X line
and not executable.
okay drahn@ kettenis@ deraadt@