summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Steuck <greg@nest.cx>2020-05-02 21:11:40 -0700
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-05-08 15:29:45 -0400
commit86c77b36628dcce7bc9b066fc24c8c521fecc3ee (patch)
tree67c0b0e20005d65448c310824fc567236da8e9e0
parent88e3c8150d2b2d96c3ebc0b2942c9af44071c511 (diff)
downloadhaskell-86c77b36628dcce7bc9b066fc24c8c521fecc3ee.tar.gz
Remove unused SEGMENT_PROT_RWX
It's been unused for a year and is problematic on any OS which requires W^X for security.
-rw-r--r--rts/LinkerInternals.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/rts/LinkerInternals.h b/rts/LinkerInternals.h
index 8a8df50098..6ecf742fd4 100644
--- a/rts/LinkerInternals.h
+++ b/rts/LinkerInternals.h
@@ -74,12 +74,10 @@ typedef enum {
SEGMENT_PROT_RO = PROT_READ,
SEGMENT_PROT_RX = PROT_READ | PROT_EXEC,
SEGMENT_PROT_RWO = PROT_READ | PROT_WRITE,
- SEGMENT_PROT_RWX = PROT_READ | PROT_WRITE | PROT_EXEC
#else
SEGMENT_PROT_RO,
SEGMENT_PROT_RX,
SEGMENT_PROT_RWO,
- SEGMENT_PROT_RWX
#endif
} SegmentProt;