patch-libffi_src_closures_c 662 B

1234567891011121314151617181920
  1. $OpenBSD: patch-libffi_src_closures_c,v 1.1 2016/05/28 16:06:14 sthen Exp $
  2. --- libffi/src/closures.c.orig Fri May 27 17:06:27 2016
  3. +++ libffi/src/closures.c Fri May 27 17:07:17 2016
  4. @@ -481,6 +481,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_emutramp_enabled ())
  9. {
  10. ptr = mmap (start, length, prot & ~PROT_EXEC, flags, fd, offset);
  11. @@ -499,6 +500,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. {