[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Skip executable malloc() test on PowerPC OpenBSD

From: Josh Elsasser
Subject: Skip executable malloc() test on PowerPC OpenBSD
Date: Wed, 20 Nov 2019 20:37:42 -0800
User-agent: Mutt/1.5.22 (2013-10-16)

On OpenBSD, memory returned by malloc() is never marked executable.
However it seems that on OpenBSD/macppc with some CPUs, this
restriction isn't enforced. Unfortunately, this doesn't mean that it
will work with perfect reliability. On my mac mini g4, the configure
test would only fail about half of the time.

Forcing the test to fail allows a working method to be reliably

diff --git m4/codeexec.m4 m4/codeexec.m4
index ff51972..144a6da 100644
--- m4/codeexec.m4
+++ m4/codeexec.m4
@@ -39,6 +39,11 @@ AC_DEFUN([FFCALL_CODEEXEC],
          dnl test program loops endlessly.
+       powerpc--openbsd*)
+         dnl On this platform, malloc()ed memory is not marked as executable,
+         dnl but the test program may not reliably detect this.
+         ffcall_cv_codeexec=no
+         ;;
            [#include <sys/types.h>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]