patches/glibc/ports-2.9/110-arm-fix-sjlj-for-fpu.patch
changeset 1871 dfc2b3e07ea6
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/ports-2.9/110-arm-fix-sjlj-for-fpu.patch	Tue Mar 30 22:30:41 2010 +0200
     1.3 @@ -0,0 +1,30 @@
     1.4 +From: Mike Frysinger <vapier at gentoo dot org>
     1.5 +To: libc-ports at sourceware dot org
     1.6 +Subject: [PATCH] arm/fpu/setjmp.S: add missing hidden def
     1.7 +Date: Thu, 25 Dec 2008 23:08:56 -0500
     1.8 +
     1.9 +All the other arm setjmp.S files provide a hidden alias for __sigsetjmp.
    1.10 +Without this, we get a nice build failure like so:
    1.11 +
    1.12 +/var/tmp/cross/armv4l-unknown-linux-gnu/portage/cross-armv4l-unknown-linux-gnu/glibc-2.9_p20081201/work/build-default-armv4l-unknown-linux-gnu-nptl/libc_pic.os: In function `setjmp':
    1.13 +unwind-pe.c:(.text+0x15a54): undefined reference to `__GI___sigsetjmp'
    1.14 +/var/tmp/cross/armv4l-unknown-linux-gnu/portage/cross-armv4l-unknown-linux-gnu/glibc-2.9_p20081201/work/build-default-armv4l-unknown-linux-gnu-nptl/libc_pic.os: In function `__GI__setjmp':
    1.15 +unwind-pe.c:(.text+0x15a64): undefined reference to `__GI___sigsetjmp'
    1.16 +collect2: ld returned 1 exit status
    1.17 +make[1]: *** [/var/tmp/cross/armv4l-unknown-linux-gnu/portage/cross-armv4l-unknown-linux-gnu/glibc-2.9_p20081201/work/build-default-armv4l-unknown-linux-gnu-nptl/libc.so] Error 1
    1.18 +
    1.19 +Signed-off-by: Mike Frysinger <vapier@gentoo.org>
    1.20 +---
    1.21 + sysdeps/arm/fpu/setjmp.S |    2 ++
    1.22 + 1 files changed, 2 insertions(+), 0 deletions(-)
    1.23 +
    1.24 +diff --git a/sysdeps/arm/fpu/setjmp.S b/sysdeps/arm/fpu/setjmp.S
    1.25 +index 8432836..82a7e19 100644
    1.26 +--- a/ports/sysdeps/arm/fpu/setjmp.S
    1.27 ++++ b/ports/sysdeps/arm/fpu/setjmp.S
    1.28 +@@ -33,3 +33,5 @@ ENTRY (__sigsetjmp)
    1.29 + 	/* Make a tail call to __sigjmp_save; it takes the same args.  */
    1.30 + 	B	PLTJMP(C_SYMBOL_NAME(__sigjmp_save))
    1.31 + END (__sigsetjmp)
    1.32 ++
    1.33 ++hidden_def (__sigsetjmp)