diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-06-08 11:59:00 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-06-08 11:59:00 +0000 |
commit | 23d3f11debde1922bcf0ee2ddb76dbc44f94fa84 (patch) | |
tree | 57509bf1825555f47bc0e77bcd816e3aa06fe043 /libexec/ld.so/dir.h | |
parent | ca23d60df1120a1060e97f92930c0dcffc7632c6 (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/dir.h')
0 files changed, 0 insertions, 0 deletions