public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Riley <oscar@the-rileys.net>
To: linux-kernel@vger.kernel.org, torvalds@transmeta.com,
	linuxppc-dev@lists.linuxppc.org
Subject: asm-ppc/elf.h error
Date: Fri, 24 Nov 2000 16:07:15 -0500	[thread overview]
Message-ID: <3A1ED883.9AD8136A@the-rileys.net> (raw)

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

             reply	other threads:[~2000-11-24 21:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-24 21:07 David Riley [this message]
2000-11-27 12:40 ` asm-ppc/elf.h error Franz Sirl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3A1ED883.9AD8136A@the-rileys.net \
    --to=oscar@the-rileys.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox