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. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -21,4 +21,5 @@
PSEUDO (_exit, exit, 1) PSEUDO (_exit, exit, 1)
/* Shouldn't get here. */ /* Shouldn't get here. */
PSEUDO_END(_exit) PSEUDO_END(_exit)
libc_hidden_def (_exit)
weak_alias (_exit, _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. This file is part of the GNU C Library.
Contributed by Richard Henderson (rth@tamu.edu) Contributed by Richard Henderson (rth@tamu.edu)
@ -88,7 +88,7 @@ L(here):
addl $_GLOBAL_OFFSET_TABLE_+[.-L(here)], %ebx addl $_GLOBAL_OFFSET_TABLE_+[.-L(here)], %ebx
#endif #endif
pushl %eax pushl %eax
call JUMPTARGET (_exit) call HIDDEN_JUMPTARGET (_exit)
PSEUDO_END (BP_SYM (__clone)) 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. This file is part of the GNU C Library.
Contributed by Andreas Schwab (schwab@issan.informatik.uni-dortmund.de) Contributed by Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
@ -58,7 +58,7 @@ thread_start:
subl %fp, %fp /* terminate the stack frame */ subl %fp, %fp /* terminate the stack frame */
jsr (%a0) jsr (%a0)
movel %d0, -(%sp) movel %d0, -(%sp)
jbsr JUMPTARGET (_exit) jbsr HIDDEN_JUMPTARGET (_exit)
PSEUDO_END (__clone) PSEUDO_END (__clone)

View File

@ -1,5 +1,5 @@
/* Wrapper around clone system call. /* 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. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -77,7 +77,7 @@ ENTRY (BP_SYM (__clone))
mr r3,r31 mr r3,r31
bctrl bctrl
/* Call _exit with result from procedure. */ /* Call _exit with result from procedure. */
b JUMPTARGET(_exit) b HIDDEN_JUMPTARGET(_exit)
L(parent): L(parent):
/* Parent. Restore registers & return. */ /* 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. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -79,7 +79,7 @@ thread_start:
call *%rax call *%rax
/* Call exit with return value from function call. */ /* Call exit with return value from function call. */
movq %rax, %rdi movq %rax, %rdi
call JUMPTARGET (_exit) call HIDDEN_JUMPTARGET (_exit)
PSEUDO_END (BP_SYM (__clone)) PSEUDO_END (BP_SYM (__clone))