summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/elf.h
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-09-21 08:34:39 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2006-09-21 08:34:39 +0100
commit6ff6340abeaaf1a15587c87dac3e56754778cc7a (patch)
treec8190e7a854f8fc13dcf35ca62fe975fb06c8a16 /include/asm-arm/elf.h
parent1f8b444ceabb228594121d3ccea15248a4c2e1a4 (diff)
downloadtalos-obmc-linux-6ff6340abeaaf1a15587c87dac3e56754778cc7a.tar.gz
talos-obmc-linux-6ff6340abeaaf1a15587c87dac3e56754778cc7a.zip
[HEADERS] Fix ARM 'make headers_check'
Sanitise the ARM headers exported to userspace. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/asm-arm/elf.h')
-rw-r--r--include/asm-arm/elf.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/include/asm-arm/elf.h b/include/asm-arm/elf.h
index ae7baa6c73f7..17f0c656d272 100644
--- a/include/asm-arm/elf.h
+++ b/include/asm-arm/elf.h
@@ -8,9 +8,6 @@
#include <asm/ptrace.h>
#include <asm/user.h>
-#ifdef __KERNEL
-#include <asm/procinfo.h>
-#endif
typedef unsigned long elf_greg_t;
typedef unsigned long elf_freg_t[3];
@@ -32,11 +29,6 @@ typedef elf_greg_t elf_gregset_t[ELF_NGREG];
typedef struct user_fp elf_fpregset_t;
/*
- * This is used to ensure we don't load something for the wrong architecture.
- */
-#define elf_check_arch(x) ( ((x)->e_machine == EM_ARM) && (ELF_PROC_OK((x))) )
-
-/*
* These are used to set parameters in the core dumps.
*/
#define ELF_CLASS ELFCLASS32
@@ -47,6 +39,14 @@ typedef struct user_fp elf_fpregset_t;
#endif
#define ELF_ARCH EM_ARM
+#ifdef __KERNEL__
+#include <asm/procinfo.h>
+
+/*
+ * This is used to ensure we don't load something for the wrong architecture.
+ */
+#define elf_check_arch(x) ( ((x)->e_machine == EM_ARM) && (ELF_PROC_OK((x))) )
+
#define USE_ELF_CORE_DUMP
#define ELF_EXEC_PAGESIZE 4096
@@ -83,8 +83,6 @@ typedef struct user_fp elf_fpregset_t;
extern char elf_platform[];
#define ELF_PLATFORM (elf_platform)
-#ifdef __KERNEL__
-
/*
* 32-bit code is always OK. Some cpus can do 26-bit, some can't.
*/
OpenPOWER on IntegriCloud