patch-libffi_src_closures_c 659 B

1234567891011121314151617181920
  1. $OpenBSD: patch-libffi_src_closures_c,v 1.1 2016/06/08 17:04:03 jca Exp $
  2. --- libffi/src/closures.c.orig Mon Jun 6 21:05:54 2016
  3. +++ libffi/src/closures.c Mon Jun 6 21:06:55 2016
  4. @@ -453,6 +453,7 @@ dlmmap (void *start, size_t length, int prot,
  5. printf ("mapping in %zi\n", length);
  6. #endif
  7. +#if 0
  8. if (execfd == -1 && !is_selinux_enabled ())
  9. {
  10. ptr = mmap (start, length, prot | PROT_EXEC, flags, fd, offset);
  11. @@ -465,6 +466,7 @@ dlmmap (void *start, size_t length, int prot,
  12. with ((prot & ~PROT_WRITE) | PROT_EXEC) and mremap with
  13. MREMAP_DUP and prot at this point. */
  14. }
  15. +#endif
  16. if (execsize == 0 || execfd == -1)
  17. {