patch-2.1.79 linux/include/linux/elf.h

Next file: linux/include/linux/etherdevice.h
Previous file: linux/include/linux/dcache.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.78/linux/include/linux/elf.h linux/include/linux/elf.h
@@ -127,7 +127,8 @@
 #define AT_EUID   12	/* effective uid */
 #define AT_GID    13	/* real gid */
 #define AT_EGID   14	/* effective gid */
-
+#define AT_PLATFORM 15  /* string identifying cpu for optimizations */
+#define AT_HWCAP  16    /* arch dependant hints at cpu capabilities */
 
 typedef struct dynamic{
   Elf32_Sword d_tag;
@@ -203,6 +204,14 @@
 #define R_SPARC_5		44
 #define R_SPARC_6		45
 
+/* Bits present in AT_HWCAP, primarily for Sparc32.  */
+
+#define HWCAP_SPARC_FLUSH       1       /* The cpu supports flush insn.  */
+#define HWCAP_SPARC_STBAR       2
+#define HWCAP_SPARC_SWAP        4
+#define HWCAP_SPARC_MULDIV      8
+
+
 /*
  * 68k ELF relocation types
  */
@@ -448,8 +457,6 @@
   Elf32_Word n_descsz;	/* Content size */
   Elf32_Word n_type;	/* Content type */
 } Elf64_Nhdr;
-
-#define ELF_START_MMAP 0x80000000
 
 #if ELF_CLASS == ELFCLASS32
 

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