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.
This commit is contained in:
marcel 2011-10-13 18:18:42 +00:00
parent 411bc9d083
commit d23bcad30d

View File

@ -520,6 +520,11 @@ freebsd32_mmap(struct thread *td, struct freebsd32_mmap_args *uap)
}
#endif
#if defined(__amd64__) || defined(__ia64__)
if (prot & PROT_READ)
prot |= PROT_EXEC;
#endif
ap.addr = (void *) addr;
ap.len = len;
ap.prot = prot;