summaryrefslogtreecommitdiff
path: root/arch/openrisc/include/asm/elf.h
diff options
context:
space:
mode:
authorJonas Bonn <jonas@southpole.se>2012-04-10 10:49:13 +0200
committerJonas Bonn <jonas@southpole.se>2012-05-08 11:43:30 +0200
commitb0e026f4dc118752382fa926431b4512a8042e09 (patch)
tree6d2d91a655e9da94dc96c19342ca87421676f9df /arch/openrisc/include/asm/elf.h
parent4971f2bdb746e6cc8423ea60f99694884f6052c5 (diff)
openrisc: header file cleanups
elf.h: We can export some of these symbols to userspace. libc needs them and we just as well provide them as asm/elf.h as copying them into separate libc headers. ptrace.h: Having padding in the user_regs_struct isn't of any particular value and just confuses GDB. spr_defs isn't needed in userspace; libc has its own copy anyway. Signed-off-by: Jonas Bonn <jonas@southpole.se>
Diffstat (limited to 'arch/openrisc/include/asm/elf.h')
-rw-r--r--arch/openrisc/include/asm/elf.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/openrisc/include/asm/elf.h b/arch/openrisc/include/asm/elf.h
index 2ce603bbfdd3..a8fe2c513070 100644
--- a/arch/openrisc/include/asm/elf.h
+++ b/arch/openrisc/include/asm/elf.h
@@ -20,11 +20,17 @@
#define __ASM_OPENRISC_ELF_H
/*
+ * This files is partially exported to userspace. This allows us to keep
+ * the ELF bits in one place which should assist in keeping the kernel and
+ * userspace in sync.
+ */
+
+/*
* ELF register definitions..
*/
-#include <linux/types.h>
-#include <linux/ptrace.h>
+/* for struct user_regs_struct definition */
+#include <asm/ptrace.h>
/* The OR1K relocation types... not all relevant for module loader */
#define R_OR32_NONE 0
@@ -62,6 +68,8 @@ typedef unsigned long elf_fpregset_t;
#ifdef __KERNEL__
+#include <linux/types.h>
+
/*
* This is used to ensure we don't load something for the wrong architecture.
*/