[uClibc-cvs] svn commit: trunk/uClibc/libc/sysdeps/linux/i386

vapier at uclibc.org vapier at uclibc.org
Fri Aug 12 22:51:09 UTC 2005


Author: vapier
Date: 2005-08-12 16:51:08 -0600 (Fri, 12 Aug 2005)
New Revision: 11123

Log:
revert __error -> __syscall_error change since it doesnt work for clone

Modified:
   trunk/uClibc/libc/sysdeps/linux/i386/clone.S


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/i386/clone.S
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/i386/clone.S	2005-08-12 22:50:16 UTC (rev 11122)
+++ trunk/uClibc/libc/sysdeps/linux/i386/clone.S	2005-08-12 22:51:08 UTC (rev 11123)
@@ -51,19 +51,19 @@
 	/* no NULL function pointers */
 	movl	FUNC(%esp),%ecx
 #ifdef __PIC__
-	jecxz	__syscall_error
+	jecxz	__error
 #else
 	testl	%ecx,%ecx
-	jz	__syscall_error
+	jz	__error
 #endif
 
 	/* no NULL stack pointers */
 	movl	STACK(%esp),%ecx
 #ifdef __PIC__
-	jecxz	__syscall_error
+	jecxz	__error
 #else
 	testl	%ecx,%ecx
-	jz	__syscall_error
+	jz	__error
 #endif
 
 	/* Insert the argument onto the new stack.  Make sure the new
@@ -96,7 +96,7 @@
 	popl	%ebx
 
 	test	%eax,%eax
-	jl	__syscall_error
+	jl	__error
 	jz	.Lthread_start
 	ret
 
@@ -114,6 +114,12 @@
 	movl	$__NR_exit, %eax
 	int	$0x80
 
+/* Need to indirect jump to syscall error 
+ * or we end up with TEXTREL's
+ */
+__error:
+	jmp __syscall_error
+
 .size __clone,.-__clone
 
 .weak clone




More information about the uClibc-cvs mailing list