$OpenBSD: patch-libffi_src_closures_c,v 1.1 2016/05/28 16:06:14 sthen Exp $
--- libffi/src/closures.c.orig	Fri May 27 17:06:27 2016
+++ libffi/src/closures.c	Fri May 27 17:07:17 2016
@@ -481,6 +481,7 @@ dlmmap (void *start, size_t length, int prot,
   printf ("mapping in %zi\n", length);
 #endif
 
+#if 0
   if (execfd == -1 && is_emutramp_enabled ())
     {
       ptr = mmap (start, length, prot & ~PROT_EXEC, flags, fd, offset);
@@ -499,6 +500,7 @@ dlmmap (void *start, size_t length, int prot,
 	 with ((prot & ~PROT_WRITE) | PROT_EXEC) and mremap with
 	 MREMAP_DUP and prot at this point.  */
     }
+#endif
 
   if (execsize == 0 || execfd == -1)
     {
