patches/glibc/2.9/520-sh-no-asm-elf-header.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Tue Mar 11 22:11:43 2014 +0100 (2014-03-11)
changeset 3293 e11a8a2e225d
parent 1246 aa674ae58972
permissions -rw-r--r--
comptools: do not force build of make-3.81 unless really needed

On systems with make-3.82, we forcibly force the build and the use
of make-3.81

But some newer tools break when building with make-3.81. For example,
eglibc-3.18 breaks.

Introduce a new blind options that tools may select if they require
make-3.81. If the system does not have make-3.81, and this option is
selected, then we force the build of make-3.81. Otherwise, we leave
it to the user to decide on his own.

Note that no component selects this option for now. It will come in
later patches as we find them.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
yann@1246
     1
2007-03-13  Mike Frysinger  <vapier@gentoo.org>
yann@1246
     2
yann@1246
     3
	* sysdeps/unix/sysv/linux/sh/sys/procfs.h: Copy Linux's asm-sh/elf.h types.
yann@1246
     4
yann@1246
     5
--- glibc-2_9/sysdeps/unix/sysv/linux/sh/sys/procfs.h
yann@1246
     6
+++ glibc-2_9/sysdeps/unix/sysv/linux/sh/sys/procfs.h
yann@1246
     7
@@ -29,10 +29,19 @@
yann@1246
     8
 #include <sys/types.h>
yann@1246
     9
 #include <sys/ucontext.h>
yann@1246
    10
 #include <sys/user.h>
yann@1246
    11
-#include <asm/elf.h>
yann@1246
    12
 
yann@1246
    13
 __BEGIN_DECLS
yann@1246
    14
 
yann@1246
    15
+/*
yann@1246
    16
+ * ELF register definitions...
yann@1246
    17
+ */
yann@1246
    18
+typedef unsigned long elf_greg_t;
yann@1246
    19
+
yann@1246
    20
+#define ELF_NGREG (sizeof (struct pt_regs) / sizeof(elf_greg_t))
yann@1246
    21
+typedef elf_greg_t elf_gregset_t[ELF_NGREG];
yann@1246
    22
+
yann@1246
    23
+typedef struct user_fpu_struct elf_fpregset_t;
yann@1246
    24
+
yann@1246
    25
 struct elf_siginfo
yann@1246
    26
   {
yann@1246
    27
     int si_signo;			/* Signal number.  */