summaryrefslogtreecommitdiff
path: root/arch/c6x/include/asm/ptrace.h
diff options
context:
space:
mode:
authorMark Salter <msalter@redhat.com>2012-04-23 10:02:08 -0400
committerMark Salter <msalter@redhat.com>2012-05-15 09:17:34 -0400
commitfce244762775f662f5a278a05a6e494b6e4f2774 (patch)
tree4cc7c031181760963f73570c12cec1449011dbb8 /arch/c6x/include/asm/ptrace.h
parent18d14704d66f651395a68c8a70c86f0a22bccb31 (diff)
C6X: add support to build with BINFMT_ELF_FDPIC
C6x userspace supports a shared library mechanism called DSBT for systems with no MMU. DSBT is similar to FDPIC in allowing shared text segments and private copies of data segments without an MMU. Both methods access data using a base register and offset. With FDPIC, the caller of an external function sets up the base register for the callee. With DSBT, the called function sets up its own base register. Other details differ but both userspaces need the same thing from the kernel loader: a map of where each ELF segment was loaded. The FDPIC loader already provides this, so DSBT just uses it. This patch enables BINFMT_ELF_FDPIC by default for C6X and provides the necessary architecture hooks for the generic loader. Signed-off-by: Mark Salter <msalter@redhat.com>
Diffstat (limited to 'arch/c6x/include/asm/ptrace.h')
-rw-r--r--arch/c6x/include/asm/ptrace.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/c6x/include/asm/ptrace.h b/arch/c6x/include/asm/ptrace.h
index 21e8d7931fe7..b04ff5964258 100644
--- a/arch/c6x/include/asm/ptrace.h
+++ b/arch/c6x/include/asm/ptrace.h
@@ -97,6 +97,11 @@
#define PT_DP PT_B14 /* Data Segment Pointer (B14) */
#define PT_SP PT_B15 /* Stack Pointer (B15) */
+#define PTRACE_GETFDPIC 31 /* get the ELF fdpic loadmap address */
+
+#define PTRACE_GETFDPIC_EXEC 0 /* [addr] request the executable loadmap */
+#define PTRACE_GETFDPIC_INTERP 1 /* [addr] request the interpreter loadmap */
+
#ifndef __ASSEMBLY__
#ifdef _BIG_ENDIAN