@@ -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
@@ -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
@@ -69,7 +69,7 @@ ENTRY (__clone)
jsr r0
SETUP_PIC
- PLTCALL (_exit)
+ PLTCALL (_exit_internal)
test.d [6809]
@@ -75,7 +75,7 @@ __clone:
breakpoints work.*/
mov.p gr17, gr15
- call _exit
+ call _exit_internal
/* Should never get here. */
jmpl @(gr0, gr0)
@@ -90,7 +90,7 @@ thread_start:
bl $$dyncall,%r31
copy %r31,%rp
- bl _exit,%rp
+ bl _exit_internal,%rp
copy %ret0,%arg0
@@ -106,12 +106,7 @@ __thread_start:
/* Call _exit rather than doing it inline for breakpoint purposes. */
move a0,v0
- la t9,_exit
- jalr t9
- jal _exit
+ jal _exit_internal
.end __thread_start
.weak clone;
@@ -78,11 +78,7 @@ __clone:
mr r3,r31
bctrl
/* Call _exit with result from procedure. */
- b _exit@plt
.Lparent:
/* Parent. Restore registers & return. */
@@ -118,7 +118,7 @@ __clone:
#endif
.align 2
.L1:
- .long PLTJMP(_exit)
+ .long PLTJMP(_exit_internal)
.size __clone,.-__clone;
.globl clone;
@@ -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
@@ -109,7 +109,7 @@ __clone:
call *%rax
/* Call exit with return value from function call. */
movq %rax, %rdi
- call _exit@PLT //HIDDEN_JUMPTARGET (_exit)
jmp __syscall_error