2002-08-03 Roland McGrath <roland@redhat.com>

* sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
	HIDDEN_JUMPTARGET for _exit.
	* sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
	* sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
	* sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
	* sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
This commit is contained in:
Roland McGrath 2002-08-04 01:28:11 +00:00
parent b28d7a3dfd
commit b38de2c8da
5 changed files with 11 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991, 1992, 1997, 1999 Free Software Foundation, Inc.
/* Copyright (C) 1991,92,97,99,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -21,4 +21,5 @@
PSEUDO (_exit, exit, 1)
/* Shouldn't get here. */
PSEUDO_END(_exit)
libc_hidden_def (_exit)
weak_alias (_exit, _Exit)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
/* Copyright (C) 1996, 1997,98,99,2000,02 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson (rth@tamu.edu)
@ -88,7 +88,7 @@ L(here):
addl $_GLOBAL_OFFSET_TABLE_+[.-L(here)], %ebx
#endif
pushl %eax
call JUMPTARGET (_exit)
call HIDDEN_JUMPTARGET (_exit)
PSEUDO_END (BP_SYM (__clone))

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
/* Copyright (C) 1996,97,98,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
@ -58,7 +58,7 @@ thread_start:
subl %fp, %fp /* terminate the stack frame */
jsr (%a0)
movel %d0, -(%sp)
jbsr JUMPTARGET (_exit)
jbsr HIDDEN_JUMPTARGET (_exit)
PSEUDO_END (__clone)

View File

@ -1,5 +1,5 @@
/* Wrapper around clone system call.
Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
Copyright (C) 1997,98,99,2000,02 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -44,7 +44,7 @@ ENTRY (BP_SYM (__clone))
/* Set up stack frame for parent. */
stwu r1,-32(r1)
stmw r29,16(r1)
/* Set up stack frame for child. */
clrrwi r4,r4,4
li r0,0
@ -77,7 +77,7 @@ ENTRY (BP_SYM (__clone))
mr r3,r31
bctrl
/* Call _exit with result from procedure. */
b JUMPTARGET(_exit)
b HIDDEN_JUMPTARGET(_exit)
L(parent):
/* Parent. Restore registers & return. */

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2001 Free Software Foundation, Inc.
/* Copyright (C) 2001,02 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -79,7 +79,7 @@ thread_start:
call *%rax
/* Call exit with return value from function call. */
movq %rax, %rdi
call JUMPTARGET (_exit)
call HIDDEN_JUMPTARGET (_exit)
PSEUDO_END (BP_SYM (__clone))