diff options
| author | 2009-03-05 19:52:23 +0000 | |
|---|---|---|
| committer | 2009-03-05 19:52:23 +0000 | |
| commit | 217c6e6ea39000891b190f66e75afb72f11bd3c8 (patch) | |
| tree | 6f4a4464d1640b5190dc1c3ac3dc98564b48b19d /sys/compat/linux/linux_exec.c | |
| parent | Fix a panic in ether_output() when attempting to send multicast traffic on (diff) | |
| download | wireguard-openbsd-217c6e6ea39000891b190f66e75afb72f11bd3c8.tar.xz wireguard-openbsd-217c6e6ea39000891b190f66e75afb72f11bd3c8.zip | |
Make ELF platforms generate ELF core dumps. Somewhat based on code from
NetBSD.
ok kurt@, drahn@, miod@
Diffstat (limited to 'sys/compat/linux/linux_exec.c')
| -rw-r--r-- | sys/compat/linux/linux_exec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_exec.c b/sys/compat/linux/linux_exec.c index ae11761ae17..67d36895e2a 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.30 2008/06/26 05:42:14 ray Exp $ */ +/* $OpenBSD: linux_exec.c,v 1.31 2009/03/05 19:52:24 kettenis Exp $ */ /* $NetBSD: linux_exec.c,v 1.13 1996/04/05 00:01:10 christos Exp $ */ /*- @@ -39,6 +39,7 @@ #include <sys/namei.h> #include <sys/vnode.h> #include <sys/mount.h> +#include <sys/core.h> #include <sys/exec.h> #include <sys/exec_elf.h> #include <sys/exec_olf.h> @@ -101,6 +102,7 @@ struct emul emul_linux_aout = { linux_aout_copyargs, setregs, NULL, + coredump_trad, linux_sigcode, linux_esigcode, 0, @@ -126,6 +128,7 @@ struct emul emul_linux_elf = { elf32_copyargs, setregs, exec_elf32_fixup, + coredump_trad, linux_sigcode, linux_esigcode, 0, |
