aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/sysdeps/unix
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/sysdeps/unix')
-rw-r--r--linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S8
1 files changed, 5 insertions, 3 deletions
diff --git a/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S b/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S
index 0229a9a75c..b408e31b7b 100644
--- a/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S
+++ b/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S
@@ -25,17 +25,19 @@
The calling process is suspended until the new process exits or is
replaced by a call to `execve'. Return -1 for errors, 0 to the new process,
and the process ID of the new process to the old process. */
-
+
+#ifdef SHARED
.section ".toc","aw"
.LC0:
.tc __libc_pthread_functions[TC],__libc_pthread_functions
.section ".text"
.align 2
+#endif
ENTRY (__vfork)
#ifdef __NR_vfork
-
+
# ifdef SHARED
ld 10,.LC0@toc(2)
ld 10,0(10)
@@ -53,7 +55,7 @@ ENTRY (__vfork)
# endif
DO_CALL (SYS_ify (vfork));
-
+
# ifdef __ASSUME_VFORK_SYSCALL
PSEUDO_RET
# else