glibc: Make package compile in stage2.

This commit is contained in:
Michael Tremer
2012-08-12 12:27:07 -04:00
parent 1d627130ec
commit 2435f0cb43
3 changed files with 186 additions and 8 deletions

View File

@@ -0,0 +1,23 @@
--- glibc-2.12.2/ports/sysdeps/unix/sysv/linux/arm/sigrestorer.S 2011-09-08 22:22:41.000000000 +0400
+++ glibc-2.12.2/ports/sysdeps/unix/sysv/linux/arm/sigrestorer.S 2011-09-08 21:44:49.000000000 +0400
@@ -18,16 +18,20 @@
#include <sysdep.h>
+ .text
+
/* If no SA_RESTORER function was specified by the application we use
one of these. This avoids the need for the kernel to synthesise a return
instruction on the stack, which would involve expensive cache flushes. */
ENTRY(__default_sa_restorer)
swi SYS_ify(sigreturn)
+PSEUDO_END (__default_sa_restorer)
#ifdef __NR_rt_sigreturn
ENTRY(__default_rt_sa_restorer)
swi SYS_ify(rt_sigreturn)
+PSEUDO_END (__default_rt_sa_restorer)
#endif