浏览代码

make sure clone/__clone are created properly

Mike Frysinger 18 年之前
父节点
当前提交
e6dfae8b06
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      libc/sysdeps/linux/mips/clone.S

+ 6 - 4
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
@@ -109,3 +109,5 @@ __thread_start:
 	move		a0,v0
 	jal		HIDDEN_JUMPTARGET(_exit)
 	.end  __thread_start
+
+weak_alias (__clone, clone)