diff options
Diffstat (limited to 'include/asm-arm/elf.h')
-rw-r--r-- | include/asm-arm/elf.h | 18 |
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 @@ | |||
8 | 8 | ||
9 | #include <asm/ptrace.h> | 9 | #include <asm/ptrace.h> |
10 | #include <asm/user.h> | 10 | #include <asm/user.h> |
11 | #ifdef __KERNEL | ||
12 | #include <asm/procinfo.h> | ||
13 | #endif | ||
14 | 11 | ||
15 | typedef unsigned long elf_greg_t; | 12 | typedef unsigned long elf_greg_t; |
16 | typedef unsigned long elf_freg_t[3]; | 13 | typedef unsigned long elf_freg_t[3]; |
@@ -32,11 +29,6 @@ typedef elf_greg_t elf_gregset_t[ELF_NGREG]; | |||
32 | typedef struct user_fp elf_fpregset_t; | 29 | typedef struct user_fp elf_fpregset_t; |
33 | 30 | ||
34 | /* | 31 | /* |
35 | * This is used to ensure we don't load something for the wrong architecture. | ||
36 | */ | ||
37 | #define elf_check_arch(x) ( ((x)->e_machine == EM_ARM) && (ELF_PROC_OK((x))) ) | ||
38 | |||
39 | /* | ||
40 | * These are used to set parameters in the core dumps. | 32 | * These are used to set parameters in the core dumps. |
41 | */ | 33 | */ |
42 | #define ELF_CLASS ELFCLASS32 | 34 | #define ELF_CLASS ELFCLASS32 |
@@ -47,6 +39,14 @@ typedef struct user_fp elf_fpregset_t; | |||
47 | #endif | 39 | #endif |
48 | #define ELF_ARCH EM_ARM | 40 | #define ELF_ARCH EM_ARM |
49 | 41 | ||
42 | #ifdef __KERNEL__ | ||
43 | #include <asm/procinfo.h> | ||
44 | |||
45 | /* | ||
46 | * This is used to ensure we don't load something for the wrong architecture. | ||
47 | */ | ||
48 | #define elf_check_arch(x) ( ((x)->e_machine == EM_ARM) && (ELF_PROC_OK((x))) ) | ||
49 | |||
50 | #define USE_ELF_CORE_DUMP | 50 | #define USE_ELF_CORE_DUMP |
51 | #define ELF_EXEC_PAGESIZE 4096 | 51 | #define ELF_EXEC_PAGESIZE 4096 |
52 | 52 | ||
@@ -83,8 +83,6 @@ typedef struct user_fp elf_fpregset_t; | |||
83 | extern char elf_platform[]; | 83 | extern char elf_platform[]; |
84 | #define ELF_PLATFORM (elf_platform) | 84 | #define ELF_PLATFORM (elf_platform) |
85 | 85 | ||
86 | #ifdef __KERNEL__ | ||
87 | |||
88 | /* | 86 | /* |
89 | * 32-bit code is always OK. Some cpus can do 26-bit, some can't. | 87 | * 32-bit code is always OK. Some cpus can do 26-bit, some can't. |
90 | */ | 88 | */ |