Make sure the GOT and PLT are not writable.
authorkettenis <kettenis@openbsd.org>
Tue, 23 Dec 2014 16:45:04 +0000 (16:45 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 23 Dec 2014 16:45:04 +0000 (16:45 +0000)
commite5d7366ae0ce407560402051df3bb08d11cb73cc
tree0c22b0fb6268268d041a809cc6b4ed097972425c
parentce9efda15bf412d46ca64aa8c2d4f2d3bb56d2a2
Make sure the GOT and PLT are not writable.

Note that ommitting PROT_EXEC for the PLT is deliberate; static PIE
binaries should never actually hit the PLT.

We're still debating what to do when mprotect(2) fails.  But that is no
excuse not to at least attempt to fix things up.

ok deraadt@
lib/csu/boot.h