summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-03-05 19:52:25 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-03-05 19:52:25 +0000
commit94b35ac8ba6c670755f5c398f89709d960544622 (patch)
tree0c62a6bd55e1b1b55e3b7f5f166d8d94a0c07777 /sys/compat/linux
parent4939771421161444c79853f0ec2588d8aac2627e (diff)
Make ELF platforms generate ELF core dumps. Somewhat based on code from
NetBSD. ok kurt@, drahn@, miod@
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/linux_exec.c5
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,