summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/elf.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
committer <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
commit19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch)
tree40b1cb534496a7f1ca0f5c314a523c69f1fee464 /include/asm-ppc/elf.h
parent7206675c40394c78a90e74812bbdbf8cf3cca1be (diff)
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'include/asm-ppc/elf.h')
-rw-r--r--include/asm-ppc/elf.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/include/asm-ppc/elf.h b/include/asm-ppc/elf.h
index 875064189..d0e758efd 100644
--- a/include/asm-ppc/elf.h
+++ b/include/asm-ppc/elf.h
@@ -4,27 +4,30 @@
/*
* ELF register definitions..
*/
+#include <asm/ptrace.h>
#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];
-
+/*
+ * This is used to ensure we don't load something for the wrong architecture.
+ */
#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 ELF_CLASS ELFCLASS32
+#define ELF_DATA ELFDATA2MSB;
#define USE_ELF_CORE_DUMP
#define ELF_EXEC_PAGESIZE 4096
+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];
+
#endif