asm-ppc/elf.h error

From: David Riley (oscar@the-rileys.net)
Date: Fri Nov 24 2000 - 16:07:15 EST


In asm-ppc/elf.h, <asm/types.h> is not included. This breaks
compilations of anything that compiles it (e.g. binutils) because the
vector registers for Altivec aren't defined elsewhere. Included is a
quick diff. I didn't know which PPC maintainer to send this to, so I
posted it to the linuxppc-dev list.

Thanks,
        David

--- linux/include/asm-ppc/elf.h.old Fri Nov 24 15:42:44 2000
+++ linux/include/asm-ppc/elf.h Fri Nov 24 15:43:54 2000
@@ -4,6 +4,7 @@
 /*
  * ELF register definitions..
  */
+#include <linux/config.h>
 #include <asm/ptrace.h>
 
 #define ELF_NGREG 48 /* includes nip, msr, lr, etc. */
@@ -25,9 +26,11 @@
 typedef double elf_fpreg_t;
 typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
 
+#ifdef CONFIG_ALTIVEC
 /* Altivec registers */
 typedef __vector128 elf_vrreg_t;
 typedef elf_vrreg_t elf_vrregset_t[ELF_NVRREG];
+#endif
 
 #ifdef __KERNEL__
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 30 2000 - 21:00:12 EST