aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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. */