summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_exec.h
diff options
context:
space:
mode:
authormanu <manu@NetBSD.org>2006-08-07 14:19:57 +0000
committermanu <manu@NetBSD.org>2006-08-07 14:19:57 +0000
commit05c8a1b82781027b6df0bfd681a88de0f5219c13 (patch)
treea790af7c3e6e5a21ef05dc7e568925efbcefbe00 /sys/compat/linux/common/linux_exec.h
parentf646b59f80f63b59f27031ed45904c8468d70c4f (diff)
Add a new signature test for linux probe function. We look for a .debuglink
section, which is specific to the Linux dynamic interpeter (yes, Linux can execute it as a stand alone program)
Diffstat (limited to 'sys/compat/linux/common/linux_exec.h')
-rw-r--r--sys/compat/linux/common/linux_exec.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/compat/linux/common/linux_exec.h b/sys/compat/linux/common/linux_exec.h
index 137ef2ac042..958956d4ef5 100644
--- a/sys/compat/linux/common/linux_exec.h
+++ b/sys/compat/linux/common/linux_exec.h
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_exec.h,v 1.37 2006/02/09 19:18:56 manu Exp $ */
+/* $NetBSD: linux_exec.h,v 1.38 2006/08/07 14:19:57 manu Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -149,6 +149,10 @@ int linux_elf32_signature __P((struct lwp *, struct exec_package *,
int linux_elf32_gcc_signature __P((struct lwp *l,
struct exec_package *, Elf32_Ehdr *));
#endif
+#ifdef LINUX_DEBUGLINK_SIGNATURE
+int linux_elf32_debuglink_signature __P((struct lwp *l,
+ struct exec_package *, Elf32_Ehdr *));
+#endif
#ifdef LINUX_ATEXIT_SIGNATURE
int linux_elf32_atexit_signature __P((struct lwp *l,
struct exec_package *, Elf32_Ehdr *));
@@ -165,6 +169,10 @@ int linux_elf64_signature __P((struct lwp *, struct exec_package *,
int linux_elf64_gcc_signature __P((struct lwp *l,
struct exec_package *, Elf64_Ehdr *));
#endif
+#ifdef LINUX_DEBUGLINK_SIGNATURE
+int linux_elf64_debuglink_signature __P((struct lwp *l,
+ struct exec_package *, Elf64_Ehdr *));
+#endif
#ifdef LINUX_ATEXIT_SIGNATURE
int linux_elf64_atexit_signature __P((struct lwp *l,
struct exec_package *, Elf64_Ehdr *));