asm/elf.h don't exist anymore since linux kernel 2.6.25
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 13 Jul 2009 22:04:33 +0000 (00:04 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 19 Jul 2009 14:01:07 +0000 (16:01 +0200)
* sysdeps/unix/sysv/linux/alpha/sys/procfs.h (ELF_NGREG,
ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t,
elf_fpregset_t): Define. Don't include asm/elf.h.

ChangeLog.alpha
sysdeps/unix/sysv/linux/alpha/sys/procfs.h

index 4737a1a..eb23873 100644 (file)
        * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
        * sysdeps/unix/sysv/linux/alpha/sysconf.c: Likewise.
 
+       [BZ #6507]
+       * sysdeps/unix/sysv/linux/alpha/sys/procfs.h (ELF_NGREG,
+       ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t,
+       elf_fpregset_t): Define. Don't include asm/elf.h.
+
 2008-11-26  Roland McGrath  <roland@redhat.com>
 
        * sysdeps/unix/sysv/linux/alpha/wordexp.c: Contents moved to main
index bee51f9..cf4fa9f 100644 (file)
 #include <sys/types.h>
 #include <sys/ucontext.h>
 #include <sys/user.h>
-#include <asm/elf.h>
 
 __BEGIN_DECLS
 
+/*
+ * The OSF/1 version of <sys/procfs.h> makes gregset_t 46 entries long.
+ * I have no idea why that is so.  For now, we just leave it at 33
+ * (32 general regs + processor status word).
+ */
+#define ELF_NGREG       33
+#define ELF_NFPREG      32
+
+typedef unsigned long elf_greg_t;
+typedef elf_greg_t elf_gregset_t[ELF_NGREG];
+
+typedef double elf_fpreg_t;
+typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
+
 struct elf_siginfo
   {
     int si_signo;                      /* Signal number.  */