about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-04-01 21:14:56 +0000
committerUlrich Drepper <drepper@redhat.com>2004-04-01 21:14:56 +0000
commit7062ca8f6c37624593391d3e98cca1e62226ef08 (patch)
tree377300c90733d6362ac19a2e5fc8d4916715a214
parent3c55cffa1e1b55082db0b2e56a96a0ada30710eb (diff)
downloadglibc-7062ca8f6c37624593391d3e98cca1e62226ef08.tar.gz
glibc-7062ca8f6c37624593391d3e98cca1e62226ef08.tar.xz
glibc-7062ca8f6c37624593391d3e98cca1e62226ef08.zip
Update.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S [SHARED]: Use
	__GI__exit.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S6
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 46e39d1ca8..f37f8ede70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-04-01  Ulrich Drepper  <drepper@redhat.com>
 
+	* sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S [SHARED]: Use
+	__GI__exit.
+
 	* sysdeps/powerpc/fpu/bits/mathinline.h: Addn __signbitf and
 	__signbit inlines.
 
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S b/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S
index 534a1bd12d..1386b2fa22 100644
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S
@@ -1,5 +1,5 @@
 /* Wrapper around clone system call.  PowerPC64 version.
-   Copyright (C) 1997,98,99,2000,02 Free Software Foundation, Inc.
+   Copyright (C) 1997,98,99,2000,02, 2004 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
@@ -87,7 +87,11 @@ ENTRY (BP_SYM (__clone))
 	mr	r3,r31
 	bctrl
 	/* Call _exit with result from procedure.  */
+#ifdef SHARED
+	b	JUMPTARGET(__GI__exit)
+#else
 	b	JUMPTARGET(_exit)
+#endif
 
 L(parent):
 	/* Parent.  Restore registers & return.  */