patch-2.0.11 linux/include/asm-mips/elf.h

Next file: linux/include/asm-ppc/elf.h
Previous file: linux/include/asm-m68k/elf.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.10/linux/include/asm-mips/elf.h linux/include/asm-mips/elf.h
@@ -14,4 +14,20 @@
 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_MIPS)
+
+/*
+ * 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	ELFDATA2MSB;
+#define ELF_ARCH	EM_MIPS
+
+#define USE_ELF_CORE_DUMP
+#define ELF_EXEC_PAGESIZE	4096
+
 #endif /* __ASM_MIPS_ELF_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov