Jakub Jelinek 0332e1
Temporarily revert a Darwin specific change that broke mmap PROT_NONE followed by
Jakub Jelinek 0332e1
mprotect PROT_READ|PROT_WRITE.
Jakub Jelinek 0332e1
http://bugs.kde.org/show_bug.cgi?id=210268
Jakub Jelinek 0332e1
Jakub Jelinek 0332e1
--- valgrind-3.5.0/memcheck/mc_main.c.jj	2009-10-09 12:51:59.000000000 +0200
Jakub Jelinek 0332e1
+++ valgrind-3.5.0/memcheck/mc_main.c	2009-10-12 17:13:26.000000000 +0200
Jakub Jelinek 0332e1
@@ -3705,7 +3705,7 @@ static
Jakub Jelinek 0332e1
 void mc_new_mem_mmap ( Addr a, SizeT len, Bool rr, Bool ww, Bool xx,
Jakub Jelinek 0332e1
                        ULong di_handle )
Jakub Jelinek 0332e1
 {
Jakub Jelinek 0332e1
-   if (rr || ww || xx)
Jakub Jelinek 0332e1
+   if (1 || rr || ww || xx)
Jakub Jelinek 0332e1
       MC_(make_mem_defined)(a, len);
Jakub Jelinek 0332e1
    else
Jakub Jelinek 0332e1
       MC_(make_mem_noaccess)(a, len);