Page MenuHomePhabricator

[compiler-rt] [xray] Detect MPROTECT and error out when it's enabled (on NetBSD)

Authored by mgorny on Dec 22 2018, 2:53 AM.



Add a CheckMPROTECT() routine to detect when pax MPROTECT is enabled
on NetBSD, and error xray out when it is. The solution is adapted
from existing CheckASLR().

Event Timeline

mgorny created this revision.Dec 22 2018, 2:53 AM
Herald added subscribers: Restricted Project, llvm-commits, kubamracek. · View Herald TranscriptDec 22 2018, 2:53 AM
krytarowski accepted this revision.Dec 22 2018, 4:01 AM
krytarowski added inline comments.
70 ↗(On Diff #179419)


This revision is now accepted and ready to land.Dec 22 2018, 4:01 AM
This revision was automatically updated to reflect the committed changes.