diff options
Diffstat (limited to 'include/asm-powerpc/elf.h')
-rw-r--r-- | include/asm-powerpc/elf.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/asm-powerpc/elf.h b/include/asm-powerpc/elf.h index 9a83a987d396..d36426c01b6b 100644 --- a/include/asm-powerpc/elf.h +++ b/include/asm-powerpc/elf.h | |||
@@ -124,12 +124,10 @@ typedef elf_greg_t32 elf_gregset_t32[ELF_NGREG]; | |||
124 | # define ELF_DATA ELFDATA2MSB | 124 | # define ELF_DATA ELFDATA2MSB |
125 | typedef elf_greg_t64 elf_greg_t; | 125 | typedef elf_greg_t64 elf_greg_t; |
126 | typedef elf_gregset_t64 elf_gregset_t; | 126 | typedef elf_gregset_t64 elf_gregset_t; |
127 | # define elf_addr_t unsigned long | ||
128 | #else | 127 | #else |
129 | /* Assumption: ELF_ARCH == EM_PPC and ELF_CLASS == ELFCLASS32 */ | 128 | /* Assumption: ELF_ARCH == EM_PPC and ELF_CLASS == ELFCLASS32 */ |
130 | typedef elf_greg_t32 elf_greg_t; | 129 | typedef elf_greg_t32 elf_greg_t; |
131 | typedef elf_gregset_t32 elf_gregset_t; | 130 | typedef elf_gregset_t32 elf_gregset_t; |
132 | # define elf_addr_t __u32 | ||
133 | #endif /* ELF_ARCH */ | 131 | #endif /* ELF_ARCH */ |
134 | 132 | ||
135 | /* Floating point registers */ | 133 | /* Floating point registers */ |
@@ -411,4 +409,17 @@ do { \ | |||
411 | /* Keep this the last entry. */ | 409 | /* Keep this the last entry. */ |
412 | #define R_PPC64_NUM 107 | 410 | #define R_PPC64_NUM 107 |
413 | 411 | ||
412 | #ifdef CONFIG_SPU_BASE | ||
413 | /* Notes used in ET_CORE. Note name is "SPU/<fd>/<filename>". */ | ||
414 | #define NT_SPU 1 | ||
415 | |||
416 | extern int arch_notes_size(void); | ||
417 | extern void arch_write_notes(struct file *file); | ||
418 | |||
419 | #define ELF_CORE_EXTRA_NOTES_SIZE arch_notes_size() | ||
420 | #define ELF_CORE_WRITE_EXTRA_NOTES arch_write_notes(file) | ||
421 | |||
422 | #define ARCH_HAVE_EXTRA_ELF_NOTES | ||
423 | #endif /* CONFIG_PPC_CELL */ | ||
424 | |||
414 | #endif /* _ASM_POWERPC_ELF_H */ | 425 | #endif /* _ASM_POWERPC_ELF_H */ |