diff options
Diffstat (limited to 'include/asm-ppc/elf.h')
-rw-r--r-- | include/asm-ppc/elf.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/asm-ppc/elf.h b/include/asm-ppc/elf.h new file mode 100644 index 000000000..875064189 --- /dev/null +++ b/include/asm-ppc/elf.h @@ -0,0 +1,30 @@ +#ifndef __PPC_ELF_H +#define __PPC_ELF_H + +/* + * ELF register definitions.. + */ + +#define ELF_NGREG 32 +#define ELF_NFPREG 32 + +typedef unsigned long elf_greg_t; +typedef elf_greg_t elf_gregset_t[ELF_NGREG]; + +typedef double elf_fpreg_t; +typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; + +#define elf_check_arch(x) ((x) == EM_PPC) + +/* + * These are used to set parameters in the core dumps. + * FIXME(eric) I don't know what the correct endianness to use is. + */ +#define ELF_CLASS ELFCLASS32 +#define ELF_DATA ELFDATA2LSB; +#define ELF_ARCH EM_PPC + +#define USE_ELF_CORE_DUMP +#define ELF_EXEC_PAGESIZE 4096 + +#endif |