patch-2.1.40 linux/include/asm-sparc64/elf.h

Next file: linux/include/asm-sparc64/head.h
Previous file: linux/include/asm-ppc/keyboard.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.39/linux/include/asm-sparc64/elf.h linux/include/asm-sparc64/elf.h
@@ -1,4 +1,4 @@
-/* $Id: elf.h,v 1.4 1997/05/04 07:21:21 davem Exp $ */
+/* $Id: elf.h,v 1.6 1997/05/17 11:51:27 davem Exp $ */
 #ifndef __ASM_SPARC64_ELF_H
 #define __ASM_SPARC64_ELF_H
 
@@ -7,6 +7,7 @@
  */
 
 #include <asm/ptrace.h>
+#include <asm/processor.h>
 
 typedef unsigned long elf_greg_t;
 
@@ -19,9 +20,13 @@
  * These are used to set parameters in the core dumps.
  */
 #ifndef ELF_ARCH
-#define ELF_ARCH	EM_SPARC64
-#define ELF_CLASS	ELFCLASS64
-#define ELF_DATA	ELFDATA2MSB;
+#define ELF_ARCH		EM_SPARC64
+#define ELF_CLASS		ELFCLASS64
+#define ELF_DATA		ELFDATA2MSB;
+#endif
+
+#ifndef ELF_FLAGS_INIT
+#define ELF_FLAGS_INIT current->tss.flags &= ~SPARC_FLAG_32BIT
 #endif
 
 /*
@@ -30,7 +35,6 @@
 #define elf_check_arch(x) ((x) == ELF_ARCH)	/* Might be EM_SPARC64 or EM_SPARC */
 
 #define USE_ELF_CORE_DUMP
-#define ELF_EXEC_PAGESIZE	4096
-
+#define ELF_EXEC_PAGESIZE	8192
 
 #endif /* !(__ASM_SPARC64_ELF_H) */

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