diff options
Diffstat (limited to 'arch/blackfin/include/asm/elf.h')
-rw-r--r-- | arch/blackfin/include/asm/elf.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/blackfin/include/asm/elf.h b/arch/blackfin/include/asm/elf.h index 5b50f0ecacf8..117713adea7f 100644 --- a/arch/blackfin/include/asm/elf.h +++ b/arch/blackfin/include/asm/elf.h | |||
@@ -22,12 +22,15 @@ | |||
22 | #define EF_BFIN_CODE_IN_L2 0x00000040 /* --code-in-l2 */ | 22 | #define EF_BFIN_CODE_IN_L2 0x00000040 /* --code-in-l2 */ |
23 | #define EF_BFIN_DATA_IN_L2 0x00000080 /* --data-in-l2 */ | 23 | #define EF_BFIN_DATA_IN_L2 0x00000080 /* --data-in-l2 */ |
24 | 24 | ||
25 | #if 1 /* core dumps not supported, but linux/elfcore.h needs these */ | ||
25 | typedef unsigned long elf_greg_t; | 26 | typedef unsigned long elf_greg_t; |
26 | 27 | ||
27 | #define ELF_NGREG 40 /* (sizeof(struct user_regs_struct) / sizeof(elf_greg_t)) */ | 28 | #define ELF_NGREG (sizeof(struct pt_regs) / sizeof(elf_greg_t)) |
28 | typedef elf_greg_t elf_gregset_t[ELF_NGREG]; | 29 | typedef elf_greg_t elf_gregset_t[ELF_NGREG]; |
29 | 30 | ||
30 | typedef struct { } elf_fpregset_t; | 31 | typedef struct { } elf_fpregset_t; |
32 | #endif | ||
33 | |||
31 | /* | 34 | /* |
32 | * This is used to ensure we don't load something for the wrong architecture. | 35 | * This is used to ensure we don't load something for the wrong architecture. |
33 | */ | 36 | */ |
@@ -55,6 +58,9 @@ do { \ | |||
55 | _regs->p2 = _dynamic_addr; \ | 58 | _regs->p2 = _dynamic_addr; \ |
56 | } while(0) | 59 | } while(0) |
57 | 60 | ||
61 | #if 0 | ||
62 | #define CORE_DUMP_USE_REGSET | ||
63 | #endif | ||
58 | #define ELF_FDPIC_CORE_EFLAGS EF_BFIN_FDPIC | 64 | #define ELF_FDPIC_CORE_EFLAGS EF_BFIN_FDPIC |
59 | #define ELF_EXEC_PAGESIZE 4096 | 65 | #define ELF_EXEC_PAGESIZE 4096 |
60 | 66 | ||