public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* asm-ppc/elf.h error
@ 2000-11-24 21:07 David Riley
  2000-11-27 12:40 ` Franz Sirl
  0 siblings, 1 reply; 2+ messages in thread
From: David Riley @ 2000-11-24 21:07 UTC (permalink / raw)
  To: linux-kernel, torvalds, linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

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

[-- Attachment #2: elf.h.diff --]
[-- Type: text/plain, Size: 545 bytes --]

--- 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__
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: asm-ppc/elf.h error
  2000-11-24 21:07 asm-ppc/elf.h error David Riley
@ 2000-11-27 12:40 ` Franz Sirl
  0 siblings, 0 replies; 2+ messages in thread
From: Franz Sirl @ 2000-11-27 12:40 UTC (permalink / raw)
  To: David Riley; +Cc: linux-kernel, torvalds, linuxppc-dev

At 22:07 24.11.00, David Riley wrote:
>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.

(Looking at the correct patch)

Why do you need that? Your claim that binutils needs that is simply wrong, 
I compiled CVS binutils without problems against bk 2.4.0-t11. In any case, 
glibc-2.1.3 and glibc-2.2 have this stuff in sys/procfs.h, so you should 
use that instead I guess. That's at least what gdb uses.

Franz.

-
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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-27 13:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-24 21:07 asm-ppc/elf.h error David Riley
2000-11-27 12:40 ` Franz Sirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox