diff options
-rw-r--r-- | share/man/man8/compat_svr4.8 | 5 | ||||
-rw-r--r-- | sys/kern/exec_elf.c | 11 |
2 files changed, 4 insertions, 12 deletions
diff --git a/share/man/man8/compat_svr4.8 b/share/man/man8/compat_svr4.8 index f71b113d7f1..441cd213c95 100644 --- a/share/man/man8/compat_svr4.8 +++ b/share/man/man8/compat_svr4.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: compat_svr4.8,v 1.16 2007/05/31 19:19:58 jmc Exp $ +.\" $OpenBSD: compat_svr4.8,v 1.17 2009/11/19 02:36:27 guenther Exp $ .\" $NetBSD: compat_svr4.8,v 1.1 1996/07/06 17:14:50 christos Exp $ .\" .\" Copyright (c) 1996 Christos Zoulas @@ -32,7 +32,7 @@ .\" .\" Stolen from compat_linux.8,v 1.2 1995/10/16 20:17:59 fvdl .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: November 19 2009 $ .Dt COMPAT_SVR4 8 .Os .Sh NAME @@ -53,6 +53,7 @@ filesystem .It sound and video interfaces .It threads (ttsession uses threads) .It the streams administrative driver +.It mapping of page zero to the executable for Dell SVR4 binaries .El .Pp The SVR4 compatibility feature is active diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c index ae1a0af51d7..48b48c89a6a 100644 --- a/sys/kern/exec_elf.c +++ b/sys/kern/exec_elf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf.c,v 1.70 2009/06/06 21:25:19 deraadt Exp $ */ +/* $OpenBSD: exec_elf.c,v 1.71 2009/11/19 02:36:27 guenther Exp $ */ /* * Copyright (c) 1996 Per Fogelstrom @@ -753,15 +753,6 @@ native: epp->ep_interp_pos = pos; } -#if defined(COMPAT_SVR4) && defined(i386) && 0 /* nothing sets OOS_DELL... */ -#ifndef ELF_MAP_PAGE_ZERO - /* Dell SVR4 maps page zero, yeuch! */ - if (p->p_os == OOS_DELL) -#endif - NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_readvn, PAGE_SIZE, 0, - epp->ep_vp, 0, VM_PROT_READ); -#endif - free(ph, M_TEMP); vn_marktext(epp->ep_vp); return (exec_setup_stack(p, epp)); |