Эх сурвалжийг харах

Make clone use internal _exit

Peter S. Mazinger 20 жил өмнө
parent
commit
1956924cea

+ 1 - 1
libc/sysdeps/linux/alpha/clone.S

@@ -87,7 +87,7 @@ thread_start:
 
 	/* Call _exit rather than doing it inline for breakpoint purposes */
 	mov	v0,a0
-	jsr	ra,_exit
+	jsr	ra,_exit_internal
 
 	/* Die horribly.  */
 	halt

+ 1 - 5
libc/sysdeps/linux/arm/clone.S

@@ -59,11 +59,7 @@ __clone:
 	ldr 	pc, [sp]
 
 	@ and we are done, passing the return value through r0
-#ifdef __PIC__
-	b	_exit(PLT)
-#else
-	b	_exit
-#endif
+	b	_exit_internal
 
 __error:
 	b	__syscall_error

+ 1 - 1
libc/sysdeps/linux/cris/clone.S

@@ -69,7 +69,7 @@ ENTRY (__clone)
 	jsr	r0
 
 	SETUP_PIC
-	PLTCALL	(_exit)
+	PLTCALL	(_exit_internal)
 
 	/* Die horribly.  */
 	test.d	[6809]

+ 1 - 1
libc/sysdeps/linux/frv/clone.S

@@ -75,7 +75,7 @@ __clone:
 	   breakpoints work.*/
 
 	mov.p	gr17, gr15
-	call	_exit
+	call	_exit_internal
 
 	/* Should never get here.  */
 	jmpl	@(gr0, gr0)

+ 1 - 1
libc/sysdeps/linux/hppa/clone.S

@@ -90,7 +90,7 @@ thread_start:
 	bl	$$dyncall,%r31
 	copy	%r31,%rp
 
-	bl	_exit,%rp
+	bl	_exit_internal,%rp
 	copy	%ret0,%arg0
 
 	/* Die horribly.  */

+ 1 - 6
libc/sysdeps/linux/mips/clone.S

@@ -106,12 +106,7 @@ __thread_start:
 
 	/* Call _exit rather than doing it inline for breakpoint purposes.  */
 	move		a0,v0
-#ifdef __PIC__
-	la		t9,_exit
-	jalr		t9
-#else
-	jal		_exit
-#endif
+	jal		_exit_internal
 	.end  __thread_start
 
 .weak clone;

+ 1 - 5
libc/sysdeps/linux/powerpc/clone.S

@@ -78,11 +78,7 @@ __clone:
 	mr	r3,r31
 	bctrl
 	/* Call _exit with result from procedure.  */
-#ifdef __PIC__
-	b	_exit@plt
-#else
-	b	_exit
-#endif
+	b	_exit_internal
 
 .Lparent:
 	/* Parent.  Restore registers & return.  */

+ 1 - 1
libc/sysdeps/linux/sh/clone.S

@@ -118,7 +118,7 @@ __clone:
 #endif
 	.align	2
 .L1:
-	.long	PLTJMP(_exit)
+	.long	PLTJMP(_exit_internal)
 .size __clone,.-__clone;
 
 .globl  clone;

+ 1 - 1
libc/sysdeps/linux/sparc/clone.S

@@ -59,7 +59,7 @@ __error:
 __thread_start:
 	call	%i0
 	mov	%i3,%o0
-	call	_exit,0
+	call	_exit_internal,0
 	nop
 
 .size __thread_start,.-__thread_start

+ 1 - 1
libc/sysdeps/linux/x86_64/clone.S

@@ -109,7 +109,7 @@ __clone:
 	call	*%rax
 	/* Call exit with return value from function call. */
 	movq	%rax, %rdi
-	call	_exit@PLT //HIDDEN_JUMPTARGET (_exit)
+	call	_exit_internal
 
 __error:
 	jmp __syscall_error