crosstool-ng/patches/glibc/2_9/520-sh-no-asm-elf-header.patch
Yann E. MORIN" a4d865512c Add two patches agains glibc-2_9 to (try to) build for SuperH.
/trunk/patches/glibc/2_9/510-sh-no-asm-user-header.patch |   70    70     0     0 ++++++++++++++++++++++
 /trunk/patches/glibc/2_9/520-sh-no-asm-elf-header.patch  |   27    27     0     0 ++++++++
 2 files changed, 97 insertions(+)
2009-03-08 11:16:57 +00:00

28 lines
680 B
Diff

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. */