From b38de2c8da34cf506651a5170a3d2d46292650ad Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 4 Aug 2002 01:28:11 +0000 Subject: [PATCH] 2002-08-03 Roland McGrath * 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. --- sysdeps/unix/_exit.S | 3 ++- sysdeps/unix/sysv/linux/i386/clone.S | 4 ++-- sysdeps/unix/sysv/linux/m68k/clone.S | 4 ++-- sysdeps/unix/sysv/linux/powerpc/clone.S | 6 +++--- sysdeps/unix/sysv/linux/x86_64/clone.S | 4 ++-- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/sysdeps/unix/_exit.S b/sysdeps/unix/_exit.S index 4fdef35..115527e 100644 --- a/sysdeps/unix/_exit.S +++ b/sysdeps/unix/_exit.S @@ -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) diff --git a/sysdeps/unix/sysv/linux/i386/clone.S b/sysdeps/unix/sysv/linux/i386/clone.S index cf8120b..9865ebd 100644 --- a/sysdeps/unix/sysv/linux/i386/clone.S +++ b/sysdeps/unix/sysv/linux/i386/clone.S @@ -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)) diff --git a/sysdeps/unix/sysv/linux/m68k/clone.S b/sysdeps/unix/sysv/linux/m68k/clone.S index 9ca789d..e19172a 100644 --- a/sysdeps/unix/sysv/linux/m68k/clone.S +++ b/sysdeps/unix/sysv/linux/m68k/clone.S @@ -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) diff --git a/sysdeps/unix/sysv/linux/powerpc/clone.S b/sysdeps/unix/sysv/linux/powerpc/clone.S index a43fe1b..97849a5 100644 --- a/sysdeps/unix/sysv/linux/powerpc/clone.S +++ b/sysdeps/unix/sysv/linux/powerpc/clone.S @@ -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. */ diff --git a/sysdeps/unix/sysv/linux/x86_64/clone.S b/sysdeps/unix/sysv/linux/x86_64/clone.S index a2c2c9a..5b35207 100644 --- a/sysdeps/unix/sysv/linux/x86_64/clone.S +++ b/sysdeps/unix/sysv/linux/x86_64/clone.S @@ -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)) -- 2.7.4