Date: Thu, 13 Oct 2011 18:18:42 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r226347 - head/sys/compat/freebsd32 Message-ID: <201110131818.p9DIIgQL026914@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110131818.p9DIIgQL026914>