The glibc-2.7 profs fix for SuperH was missing very important parts...
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Oct 24 11:14:31 2008 +0000 (2008-10-24)
changeset 96905b5926fc5cb
parent 968 1b0e89014a91
child 970 4bb2921d9c2a
The glibc-2.7 profs fix for SuperH was missing very important parts...

/trunk/patches/glibc/2.7/270-sh-fix-procfs.patch | 38 32 6 0 ++++++++++++++++++++++++++++++++------
1 file changed, 32 insertions(+), 6 deletions(-)
patches/glibc/2.7/270-sh-fix-procfs.patch
     1.1 --- a/patches/glibc/2.7/270-sh-fix-procfs.patch	Fri Oct 24 07:13:52 2008 +0000
     1.2 +++ b/patches/glibc/2.7/270-sh-fix-procfs.patch	Fri Oct 24 11:14:31 2008 +0000
     1.3 @@ -1,11 +1,37 @@
     1.4 ---- a/sysdeps/unix/sysv/linux/sh/sys/procfs.h
     1.5 -+++ b/sysdeps/unix/sysv/linux/sh/sys/procfs.h
     1.6 -@@ -29,7 +29,6 @@
     1.7 +diff -durN glibc-2.7.orig/sysdeps/unix/sysv/linux/sh/sys/procfs.h glibc-2.7/sysdeps/unix/sysv/linux/sh/sys/procfs.h
     1.8 +--- glibc-2.7.orig/sysdeps/unix/sysv/linux/sh/sys/procfs.h	2004-11-20 18:56:16.000000000 +0100
     1.9 ++++ glibc-2.7/sysdeps/unix/sysv/linux/sh/sys/procfs.h	2008-10-24 11:21:15.000000000 +0200
    1.10 +@@ -29,10 +29,32 @@
    1.11   #include <sys/types.h>
    1.12   #include <sys/ucontext.h>
    1.13   #include <sys/user.h>
    1.14  -#include <asm/elf.h>
    1.15 -
    1.16 + 
    1.17   __BEGIN_DECLS
    1.18 -
    1.19 -
    1.20 + 
    1.21 ++/* BEGIN - UGLY HACK - YEM
    1.22 ++ * These definitions are copied from the Alpha file,
    1.23 ++ * and the register numbers are set accordingly to
    1.24 ++ * what I could find in the Linux kernel sources
    1.25 ++ * Highly dubious !!!!
    1.26 ++ * BIG FAT WARNING !!!
    1.27 ++ */
    1.28 ++
    1.29 ++/* Linux kernel says 16 (standards?) registers */
    1.30 ++#define ELF_NGREG  16
    1.31 ++/* Linux kernel says 16 floating point registers */
    1.32 ++#define ELF_NFPREG 16
    1.33 ++
    1.34 ++/* Copied from Alpha as is */
    1.35 ++typedef unsigned long elf_greg_t;
    1.36 ++typedef elf_greg_t elf_gregset_t[ELF_NGREG];
    1.37 ++
    1.38 ++/* Ditto */
    1.39 ++typedef double elf_fpreg_t;
    1.40 ++typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
    1.41 ++
    1.42 ++/* END - UGLY HACK - YEM */
    1.43 ++
    1.44 + struct elf_siginfo
    1.45 +   {
    1.46 +     int si_signo;			/* Signal number.  */