summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/nios2/clone.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/nios2/clone.S')
-rw-r--r--libc/sysdeps/linux/nios2/clone.S11
1 files changed, 4 insertions, 7 deletions
diff --git a/libc/sysdeps/linux/nios2/clone.S b/libc/sysdeps/linux/nios2/clone.S
index ba514c40b..4afcb7d75 100644
--- a/libc/sysdeps/linux/nios2/clone.S
+++ b/libc/sysdeps/linux/nios2/clone.S
@@ -18,10 +18,10 @@
/* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg); */
.text
-.global __clone
-.type __clone,%function
+.global clone
+.type clone,%function
.align 4
-__clone:
+clone:
addi sp,sp,-8
mov r8,r4
stw ra,4(sp)
@@ -65,9 +65,6 @@ CLONE_OK:
addi sp,sp,8
ret
-.size __clone,.-__clone
-
-.weak clone
- clone = __clone
+.size clone,.-clone
#endif