patch-2.4.19 linux-2.4.19/include/asm-ia64/elf.h

Next file: linux-2.4.19/include/asm-ia64/hardirq.h
Previous file: linux-2.4.19/include/asm-ia64/efi.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/include/asm-ia64/elf.h linux-2.4.19/include/asm-ia64/elf.h
@@ -4,8 +4,8 @@
 /*
  * ELF archtecture specific definitions.
  *
- * Copyright (C) 1998, 1999 Hewlett-Packard Co
- * Copyright (C) 1998, 1999 David Mosberger-Tang <davidm@hpl.hp.com>
+ * Copyright (C) 1998, 1999, 2002 Hewlett-Packard Co
+ *	David Mosberger-Tang <davidm@hpl.hp.com>
  */
 
 #include <asm/fpu.h>
@@ -25,6 +25,10 @@
 
 #define USE_ELF_CORE_DUMP
 
+/* Least-significant four bits of ELF header's e_flags are OS-specific.  The bits are
+   interpreted as follows by Linux: */
+#define EF_IA_64_LINUX_EXECUTABLE_STACK	0x1	/* is stack (& heap) executable by default? */
+
 /* always align to 64KB to allow for future page sizes of up to 64KB: */
 #define ELF_EXEC_PAGESIZE	PAGE_SIZE
 
@@ -82,7 +86,9 @@
 #define ELF_PLATFORM	0
 
 #ifdef __KERNEL__
-#define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)
+struct elf64_hdr;
+extern void ia64_set_personality (struct elf64_hdr *elf_ex, int ibcs2_interpreter);
+#define SET_PERSONALITY(ex, ibcs2)	ia64_set_personality(&(ex), ibcs2)
 #endif
 
 #endif /* _ASM_IA64_ELF_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)