summaryrefslogtreecommitdiff
path: root/libexec/ld.so/library_mquery.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2016-06-08 11:59:00 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2016-06-08 11:59:00 +0000
commit23d3f11debde1922bcf0ee2ddb76dbc44f94fa84 (patch)
tree57509bf1825555f47bc0e77bcd816e3aa06fe043 /libexec/ld.so/library_mquery.c
parentca23d60df1120a1060e97f92930c0dcffc7632c6 (diff)
Some ELF ABIs still require a PLT that is both writable and executable. To
avoid W^X violations, initially map such segments as writable and non-executable, and change the mapping to non-writable and executable after initial relocation processing. As a side-benefit this means we no longer depend on the __plt_start and __plt_end to make the PLT read-only after relocation processing. This will break binaries linked with ld -Z, most notably emacs, on some of our architectures. ok deraadt@, guenther@
Diffstat (limited to 'libexec/ld.so/library_mquery.c')
0 files changed, 0 insertions, 0 deletions