Author: marcel
Date: Thu Oct 13 18:18:42 2011
New Revision: 226347
URL: http://svn.freebsd.org/changeset/base/226347

Log:
  In freebsd32_mmap() and when compiling for amd64 or ia64, also
  ask for execute permissions when read permissions are wanted.
  This is needed for JDK 1.4.x on i386.

Modified:
  head/sys/compat/freebsd32/freebsd32_misc.c

Modified: head/sys/compat/freebsd32/freebsd32_misc.c
==============================================================================
--- head/sys/compat/freebsd32/freebsd32_misc.c  Thu Oct 13 18:17:03 2011        
(r226346)
+++ head/sys/compat/freebsd32/freebsd32_misc.c  Thu Oct 13 18:18:42 2011        
(r226347)
@@ -520,6 +520,11 @@ freebsd32_mmap(struct thread *td, struct
        }
 #endif
 
+#if defined(__amd64__) || defined(__ia64__)
+       if (prot & PROT_READ)
+               prot |= PROT_EXEC;
+#endif
+
        ap.addr = (void *) addr;
        ap.len = len;
        ap.prot = prot;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to