Browse Source

Remove __clone, add it only back, if threads has a another (strong) version, that needs to overwrite this

Peter S. Mazinger 18 years ago
parent
commit
4646645b53
2 changed files with 7 additions and 9 deletions
  1. 2 2
      libc/sysdeps/linux/i960/clone.S
  2. 5 7
      libc/sysdeps/linux/mips/clone.S

+ 2 - 2
libc/sysdeps/linux/i960/clone.S

@@ -28,8 +28,8 @@
         
         
 /* int _clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg); */
 /* int _clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg); */
 
 
-        .globl __clone
-__clone: 
+        .globl clone
+clone: 
         /* set up new stack image in regs r4-r7; argument will be in r3 in child.  */
         /* set up new stack image in regs r4-r7; argument will be in r3 in child.  */
         ldconst 0, r4                   /* pfp == 0 */
         ldconst 0, r4                   /* pfp == 0 */
         addo    16, g1, r5              /* sp == newfp + 16 */
         addo    16, g1, r5              /* sp == newfp + 16 */

+ 5 - 7
libc/sysdeps/linux/mips/clone.S

@@ -30,12 +30,12 @@
 /* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg) */
 /* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg) */
 
 
 	.text
 	.text
-.globl   __clone ;
+.globl   clone ;
 	.align       2;
 	.align       2;
-	.type         __clone,@function;
-	.ent        __clone, 0;
+	.type         clone,@function;
+	.ent        clone, 0;
 	
 	
-__clone:
+clone:
 	.frame	    sp, 4*SZREG, sp
 	.frame	    sp, 4*SZREG, sp
 #ifdef __PIC__
 #ifdef __PIC__
 	.set		noreorder
 	.set		noreorder
@@ -84,7 +84,7 @@ error:
 #else
 #else
 	j		__syscall_error
 	j		__syscall_error
 #endif
 #endif
-	.end  __clone
+	.end  clone
 
 
 /* Load up the arguments to the function.  Put this block of code in
 /* Load up the arguments to the function.  Put this block of code in
    its own function so that we can terminate the stack trace with our
    its own function so that we can terminate the stack trace with our
@@ -109,5 +109,3 @@ __thread_start:
 	move		a0,v0
 	move		a0,v0
 	jal		HIDDEN_JUMPTARGET(_exit)
 	jal		HIDDEN_JUMPTARGET(_exit)
 	.end  __thread_start
 	.end  __thread_start
-
-weak_alias (__clone, clone)