Make it possible to execute PIE binaries that don't have an PT_INTERP segment
authorkettenis <kettenis@openbsd.org>
Mon, 22 Dec 2014 15:05:24 +0000 (15:05 +0000)
committerkettenis <kettenis@openbsd.org>
Mon, 22 Dec 2014 15:05:24 +0000 (15:05 +0000)
commitfa471065c63597963e68a444ff14e35f14adcbaf
treee94fc568e4e52d380e7059f63a28eca6cceb7b16
parentf43f2e8db47e4591f382a031959d79aa39fa5421
Make it possible to execute PIE binaries that don't have an PT_INTERP segment
(and therefore no interpreter).  Necessary to make self-relocating "static"
PIE working.

This will also allow execution of shared libraries that have the 'x' bit set.
Those shouldn't exist, but unfortunately people outside OpenBSD think
differently which means third-party software sometimes installs shared
libraries with the 'x' bit set.

ok kurt@, deraadt@
sys/kern/exec_elf.c