From 6b4e363a79674065338c1078c009dabe65d9a0a6 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Tue, 14 Jul 2009 00:04:33 +0200 Subject: [PATCH] asm/elf.h don't exist anymore since linux kernel 2.6.25 * 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 | 5 +++++ sysdeps/unix/sysv/linux/alpha/sys/procfs.h | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ChangeLog.alpha b/ChangeLog.alpha index 4737a1af9d..eb23873a9e 100644 --- a/ChangeLog.alpha +++ b/ChangeLog.alpha @@ -20,6 +20,11 @@ * 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 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Contents moved to main diff --git a/sysdeps/unix/sysv/linux/alpha/sys/procfs.h b/sysdeps/unix/sysv/linux/alpha/sys/procfs.h index bee51f94e2..cf4fa9f8e9 100644 --- a/sysdeps/unix/sysv/linux/alpha/sys/procfs.h +++ b/sysdeps/unix/sysv/linux/alpha/sys/procfs.h @@ -29,10 +29,23 @@ #include #include #include -#include __BEGIN_DECLS +/* + * The OSF/1 version of 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. */