summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/mips/clone.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/mips/clone.S')
-rw-r--r--libc/sysdeps/linux/mips/clone.S8
1 files changed, 3 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/mips/clone.S b/libc/sysdeps/linux/mips/clone.S
index 59df022c5..82f04adfa 100644
--- a/libc/sysdeps/linux/mips/clone.S
+++ b/libc/sysdeps/linux/mips/clone.S
@@ -96,8 +96,7 @@ NESTED(__clone,4*SZREG,sp)
/* Successful return from the parent */
RESTORE_GP64
PTR_ADDU sp, FRAMESZ
- j ra
- nop
+ ret
/* Something bad happened -- no child created */
L(error):
@@ -118,7 +117,7 @@ L(error):
its own function so that we can terminate the stack trace with our
debug info. */
-LEAF(__thread_start)
+ENTRY(__thread_start)
L(thread_start):
/* cp is already loaded. */
SAVE_GP (GPOFF)
@@ -164,5 +163,4 @@ L(gotpid):
END(__thread_start)
-.weak clone;
- clone = __clone
+weak_alias (__clone, clone)