summaryrefslogtreecommitdiff
path: root/patches/glibc/2.9/520-sh-no-asm-elf-header.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/glibc/2.9/520-sh-no-asm-elf-header.patch')
-rw-r--r--patches/glibc/2.9/520-sh-no-asm-elf-header.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/patches/glibc/2.9/520-sh-no-asm-elf-header.patch b/patches/glibc/2.9/520-sh-no-asm-elf-header.patch
new file mode 100644
index 0000000..2fceb48
--- /dev/null
+++ b/patches/glibc/2.9/520-sh-no-asm-elf-header.patch
@@ -0,0 +1,27 @@
+2007-03-13 Mike Frysinger <vapier@gentoo.org>
+
+ * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Copy Linux's asm-sh/elf.h types.
+
+--- glibc-2_9/sysdeps/unix/sysv/linux/sh/sys/procfs.h
++++ glibc-2_9/sysdeps/unix/sysv/linux/sh/sys/procfs.h
+@@ -29,10 +29,19 @@
+ #include <sys/types.h>
+ #include <sys/ucontext.h>
+ #include <sys/user.h>
+-#include <asm/elf.h>
+
+ __BEGIN_DECLS
+
++/*
++ * ELF register definitions...
++ */
++typedef unsigned long elf_greg_t;
++
++#define ELF_NGREG (sizeof (struct pt_regs) / sizeof(elf_greg_t))
++typedef elf_greg_t elf_gregset_t[ELF_NGREG];
++
++typedef struct user_fpu_struct elf_fpregset_t;
++
+ struct elf_siginfo
+ {
+ int si_signo; /* Signal number. */