summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_exec.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2012-09-11 15:44:15 +0000
committerderaadt <deraadt@openbsd.org>2012-09-11 15:44:15 +0000
commit2cf794e27eafe5cb030c28554136b425ea5bf780 (patch)
tree7cf026a5ef6c359ae67a6dff806ccae260666d2a /sys/compat/linux/linux_exec.c
parentremove the session entry from the search tree when it's dead. (diff)
downloadwireguard-openbsd-2cf794e27eafe5cb030c28554136b425ea5bf780.tar.xz
wireguard-openbsd-2cf794e27eafe5cb030c28554136b425ea5bf780.zip
Remove the 'OLF method' used for the transition from a.out to ELF and
for all the compat layers which are now gone. Linux compat still works because it always used another method in any case, and nothing looks at p_os anymore. ok jsing
Diffstat (limited to 'sys/compat/linux/linux_exec.c')
-rw-r--r--sys/compat/linux/linux_exec.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/compat/linux/linux_exec.c b/sys/compat/linux/linux_exec.c
index c587445b246..22d0b2f424b 100644
--- a/sys/compat/linux/linux_exec.c
+++ b/sys/compat/linux/linux_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_exec.c,v 1.36 2012/06/20 11:37:21 pirofti Exp $ */
+/* $OpenBSD: linux_exec.c,v 1.37 2012/09/11 15:44:19 deraadt Exp $ */
/* $NetBSD: linux_exec.c,v 1.13 1996/04/05 00:01:10 christos Exp $ */
/*-
@@ -42,7 +42,6 @@
#include <sys/core.h>
#include <sys/exec.h>
#include <sys/exec_elf.h>
-#include <sys/exec_olf.h>
#include <sys/mman.h>
#include <sys/syscallargs.h>
@@ -473,7 +472,7 @@ exec_linux_elf32_makecmds(struct proc *p, struct exec_package *epp)
int
linux_elf_probe(struct proc *p, struct exec_package *epp, char *itp,
- u_long *pos, u_int8_t *os)
+ u_long *pos)
{
Elf32_Ehdr *eh = epp->ep_hdr;
char *bp, *brand;
@@ -513,8 +512,6 @@ recognized:
}
epp->ep_emul = &emul_linux_elf;
*pos = ELF32_NO_ADDR;
- if (*os == OOS_NULL)
- *os = OOS_LINUX;
mtx_init(&futex_lock, IPL_NONE);
futex_pool_init();