summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-22 09:48:21 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-22 09:48:21 +0000
commit4646645b535aa02181d6ae9b8f042f9f9bfec239 (patch)
treef4964e1050ee40cf420873be016915796952b5d0 /libc/sysdeps
parentb02044d51488c216a8b696a08b98c54627e14391 (diff)
Remove __clone, add it only back, if threads has a another (strong) version, that needs to overwrite this
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/i960/clone.S4
-rw-r--r--libc/sysdeps/linux/mips/clone.S12
2 files changed, 7 insertions, 9 deletions
diff --git a/libc/sysdeps/linux/i960/clone.S b/libc/sysdeps/linux/i960/clone.S
index c6c0dc73a..f602fbabc 100644
--- a/libc/sysdeps/linux/i960/clone.S
+++ b/libc/sysdeps/linux/i960/clone.S
@@ -28,8 +28,8 @@
/* 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. */
ldconst 0, r4 /* pfp == 0 */
addo 16, g1, r5 /* sp == newfp + 16 */
diff --git a/libc/sysdeps/linux/mips/clone.S b/libc/sysdeps/linux/mips/clone.S
index e7be7d586..a562cadfb 100644
--- a/libc/sysdeps/linux/mips/clone.S
+++ b/libc/sysdeps/linux/mips/clone.S
@@ -30,12 +30,12 @@
/* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg) */
.text
-.globl __clone ;
+.globl clone ;
.align 2;
- .type __clone,@function;
- .ent __clone, 0;
+ .type clone,@function;
+ .ent clone, 0;
-__clone:
+clone:
.frame sp, 4*SZREG, sp
#ifdef __PIC__
.set noreorder
@@ -84,7 +84,7 @@ error:
#else
j __syscall_error
#endif
- .end __clone
+ .end clone
/* 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
@@ -109,5 +109,3 @@ __thread_start:
move a0,v0
jal HIDDEN_JUMPTARGET(_exit)
.end __thread_start
-
-weak_alias (__clone, clone)