patch-2.1.96 linux/include/asm-arm/elf.h

Next file: linux/include/asm-arm/hardirq.h
Previous file: linux/include/asm-arm/ecard.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.95/linux/include/asm-arm/elf.h linux/include/asm-arm/elf.h
@@ -38,6 +38,23 @@
 
 #define ELF_ET_DYN_BASE	(2 * TASK_SIZE / 3)
 
+/* This yields a mask that user programs can use to figure out what
+   instruction set this cpu supports.  This could be done in userspace,
+   but it's not easy, and we've already done it here.  */
+
+#define ELF_HWCAP	(0)
+
+/* This yields a string that ld.so will use to load implementation
+   specific libraries for optimization.  This is more specific in
+   intent than poking at uname or /proc/cpuinfo. */
+
+#define ELF_PLATFORM	(NULL)
+
+#ifdef __KERNEL__
+#define SET_PERSONALITY(ex,ibcs2) \
+	current->personality = PER_LINUX_32BIT
+#endif
+
 #define R_ARM_NONE	(0)
 #define R_ARM_32	(1)	/* => ld 32 */
 #define R_ARM_PC26	(2)	/* => ld b/bl branches */

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