summaryrefslogtreecommitdiffstats
path: root/sys/kern/exec_elf64.c
diff options
context:
space:
mode:
authorkstailey <kstailey@openbsd.org>1999-09-12 14:15:16 +0000
committerkstailey <kstailey@openbsd.org>1999-09-12 14:15:16 +0000
commit40186d3696c085743b932b88892a8fc1e9d3d34a (patch)
treee7bac8081f28f4d22a1e1f4c86d1ce09ab07aa42 /sys/kern/exec_elf64.c
parentgrammer (diff)
downloadwireguard-openbsd-40186d3696c085743b932b88892a8fc1e9d3d34a.tar.xz
wireguard-openbsd-40186d3696c085743b932b88892a8fc1e9d3d34a.zip
Add COMPAT_NETBSD. Currently only works for ELF64. Many missing system calls.
Diffstat (limited to 'sys/kern/exec_elf64.c')
-rw-r--r--sys/kern/exec_elf64.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/kern/exec_elf64.c b/sys/kern/exec_elf64.c
index 9285f12f447..a671fcfb21a 100644
--- a/sys/kern/exec_elf64.c
+++ b/sys/kern/exec_elf64.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf64.c,v 1.1 1999/09/10 12:24:27 kstailey Exp $ */
+/* $OpenBSD: exec_elf64.c,v 1.2 1999/09/12 14:15:17 kstailey Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
@@ -71,6 +71,10 @@
#include <compat/freebsd/freebsd_exec.h>
#endif
+#ifdef COMPAT_NETBSD
+#include <compat/netbsd/netbsd_exec.h>
+#endif
+
struct elf64_probe_entry {
int (*func) __P((struct proc *, struct exec_package *, char *,
u_long *, u_int8_t *));
@@ -87,6 +91,9 @@ struct elf64_probe_entry {
#ifdef COMPAT_LINUX
{ linux_elf64_probe, 1 << OOS_LINUX },
#endif
+#ifdef COMPAT_NETBSD
+ { netbsd_elf64_probe, 1 << OOS_NETBSD },
+#endif
{ 0, 1 << OOS_OPENBSD }
};