summaryrefslogtreecommitdiff
path: root/sys/kern/exec_aout.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-07-26 23:32:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-07-26 23:32:51 +0000
commit65ac9f00ccb26fa098341a21b01a26554ccb896e (patch)
tree53cc7500519102a9fe3de48e3b5e9f4776e17b50 /sys/kern/exec_aout.c
parent086e525f6530f82efbd6c0fb019b5f8b7d964c3e (diff)
request non-executable BSS from uvm (first page of BSS may land inside
last page of DATA, and still have executability unless we can find a resolution to the GOT/PLT issues in a.out)
Diffstat (limited to 'sys/kern/exec_aout.c')
-rw-r--r--sys/kern/exec_aout.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/exec_aout.c b/sys/kern/exec_aout.c
index 1ef6f5b3d62..515928f61ba 100644
--- a/sys/kern/exec_aout.c
+++ b/sys/kern/exec_aout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_aout.c,v 1.7 2001/11/15 06:22:30 art Exp $ */
+/* $OpenBSD: exec_aout.c,v 1.8 2002/07/26 23:32:50 deraadt Exp $ */
/* $NetBSD: exec_aout.c,v 1.14 1996/02/04 02:15:01 christos Exp $ */
/*
@@ -143,7 +143,7 @@ exec_aout_prep_zmagic(p, epp)
/* set up command for bss segment */
NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, execp->a_bss,
epp->ep_daddr + execp->a_data, NULLVP, 0,
- VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE);
+ VM_PROT_READ|VM_PROT_WRITE);
return exec_setup_stack(p, epp);
}
@@ -181,7 +181,7 @@ exec_aout_prep_nmagic(p, epp)
bsize = epp->ep_daddr + epp->ep_dsize - baddr;
if (bsize > 0)
NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, bsize, baddr,
- NULLVP, 0, VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE);
+ NULLVP, 0, VM_PROT_READ|VM_PROT_WRITE);
return exec_setup_stack(p, epp);
}
@@ -214,7 +214,7 @@ exec_aout_prep_omagic(p, epp)
bsize = epp->ep_daddr + epp->ep_dsize - baddr;
if (bsize > 0)
NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, bsize, baddr,
- NULLVP, 0, VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE);
+ NULLVP, 0, VM_PROT_READ|VM_PROT_WRITE);
/*
* Make sure (# of pages) mapped above equals (vm_tsize + vm_dsize);