Don't use proc specificdata for the PAX stuff. Speeds up mmap() and others.
This commit is contained in:
parent
d191ae6b1b
commit
cee82bbafa
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: exec_elf32.c,v 1.133 2008/04/28 20:24:02 martin Exp $ */
|
||||
/* $NetBSD: exec_elf32.c,v 1.134 2008/06/03 22:15:14 ad Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994, 2000, 2005 The NetBSD Foundation, Inc.
|
||||
@ -57,7 +57,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(1, "$NetBSD: exec_elf32.c,v 1.133 2008/04/28 20:24:02 martin Exp $");
|
||||
__KERNEL_RCSID(1, "$NetBSD: exec_elf32.c,v 1.134 2008/06/03 22:15:14 ad Exp $");
|
||||
|
||||
/* If not included by exec_elf64.c, ELFSIZE won't be defined. */
|
||||
#ifndef ELFSIZE
|
||||
@ -716,8 +716,7 @@ exec_elf_makecmds(struct lwp *l, struct exec_package *epp)
|
||||
}
|
||||
|
||||
#if defined(PAX_MPROTECT) || defined(PAX_SEGVGUARD) || defined(PAX_ASLR)
|
||||
if (epp->ep_pax_flags)
|
||||
pax_adjust(l, epp->ep_pax_flags);
|
||||
p->p_pax = epp->ep_pax_flags;
|
||||
#endif /* PAX_MPROTECT || PAX_SEGVGUARD || PAX_ASLR */
|
||||
|
||||
#ifdef PAX_ASLR
|
||||
|
Loading…
Reference in New Issue
Block a user