There are a couple of ports with bootstraps that include libpthread.so,
these need regenerating to work with this.
This includes devel/jdk (should build ok with FLAVOR=native_bootstrap
if you have an already-installed copy of jdk) and lang/rust (I'm doing
a test build where I've done make extract,
BTW, this diff is in snapshots.
Almost 2 decades ago we started work on W^X. The concept was simple.
Pages that are writeable, should not be executable. We applies this
concept object by object, trying to seperate objects with different
qualities to different pages. The first one we handled was the signal
trampoline at the top