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:
parent
411bc9d083
commit
d23bcad30d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user