From 6016f39ad099785a289639c9f48ed19cb123afc6 Mon Sep 17 00:00:00 2001 From: Guy McSwain Date: Sat, 27 Jun 2020 07:08:01 -0500 Subject: [PATCH] Revert "Remove excessive PROT_EXEC" This reverts commit e9a0dd8ead58eb5e15c62e64d36a788c27835a9c. --- pigpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pigpio.c b/pigpio.c index 0ad740d..491c40d 100644 --- a/pigpio.c +++ b/pigpio.c @@ -7332,7 +7332,7 @@ static int initGrabLockFile(void) static uint32_t * initMapMem(int fd, uint32_t addr, uint32_t len) { return (uint32_t *) mmap(0, len, - PROT_READ|PROT_WRITE, + PROT_READ|PROT_WRITE|PROT_EXEC, MAP_SHARED|MAP_LOCKED, fd, addr); }