patches/glibc/2.9/460-alpha-glibc-2.5-no-asm-elf-header.patch
branchnewlib
changeset 1365 c4d124ed9f8e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/2.9/460-alpha-glibc-2.5-no-asm-elf-header.patch	Sun Apr 19 16:17:11 2009 +0000
     1.3 @@ -0,0 +1,38 @@
     1.4 +Original patch from: gentoo/src/patchsets/glibc/2.9/6016_all_alpha-glibc-2.5-no-asm-elf-header.patch
     1.5 +
     1.6 +-= BEGIN original header =-
     1.7 +2007-03-13  Mike Frysinger  <vapier@gentoo.org>
     1.8 +
     1.9 +	* sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Copy some defines
    1.10 +	from alpha's asm/elf.h
    1.11 +
    1.12 +-= END original header =-
    1.13 +
    1.14 +diff -durN glibc-2_9.orig/sysdeps/unix/sysv/linux/alpha/sys/procfs.h glibc-2_9/sysdeps/unix/sysv/linux/alpha/sys/procfs.h
    1.15 +--- glibc-2_9.orig/sysdeps/unix/sysv/linux/alpha/sys/procfs.h	2001-07-06 06:56:13.000000000 +0200
    1.16 ++++ glibc-2_9/sysdeps/unix/sysv/linux/alpha/sys/procfs.h	2009-02-02 22:01:33.000000000 +0100
    1.17 +@@ -29,10 +29,23 @@
    1.18 + #include <sys/types.h>
    1.19 + #include <sys/ucontext.h>
    1.20 + #include <sys/user.h>
    1.21 +-#include <asm/elf.h>
    1.22 + 
    1.23 + __BEGIN_DECLS
    1.24 + 
    1.25 ++/*
    1.26 ++ * The OSF/1 version of <sys/procfs.h> makes gregset_t 46 entries long.
    1.27 ++ * I have no idea why that is so.  For now, we just leave it at 33
    1.28 ++ * (32 general regs + processor status word). 
    1.29 ++ */
    1.30 ++#define ELF_NGREG	33
    1.31 ++#define ELF_NFPREG	32
    1.32 ++
    1.33 ++typedef unsigned long elf_greg_t;
    1.34 ++typedef elf_greg_t elf_gregset_t[ELF_NGREG];
    1.35 ++
    1.36 ++typedef double elf_fpreg_t;
    1.37 ++typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
    1.38 ++
    1.39 + struct elf_siginfo
    1.40 +   {
    1.41 +     int si_signo;			/* Signal number.  */