aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-21 19:25:36 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-21 19:25:36 +0000
commit6f50cb0027e20134991525fa43a9b95e7640c9ed (patch)
treec945bf582dd0643558a2023ef812b54f4b65d31a /linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
parentcef0a48dd199f20461719c667b977264d51da935 (diff)
downloadglibc-6f50cb0027e20134991525fa43a9b95e7640c9ed.tar
glibc-6f50cb0027e20134991525fa43a9b95e7640c9ed.tar.gz
glibc-6f50cb0027e20134991525fa43a9b95e7640c9ed.tar.bz2
glibc-6f50cb0027e20134991525fa43a9b95e7640c9ed.zip
Update.
* sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>: Check for signed overflow, not unsigned. 2003-02-21 Jakub Jelinek <jakub@redhat.com>
Diffstat (limited to 'linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S')
-rw-r--r--linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S11
1 files changed, 7 insertions, 4 deletions
diff --git a/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S b/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
index f7edf44678..8a6d2771e8 100644
--- a/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
+++ b/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
@@ -34,13 +34,16 @@ ENTRY(__vfork)
mov %o1, %o7
or %o2, %lo(__libc_pthread_functions), %o2
ldx [%o0 + %o2], %o2
- ldx [%o2], %o2
- cmp %o2, 0
- bne HIDDEN_JUMPTARGET(__fork)
+ ldx [%o2], %o0
#else
.weak pthread_create
sethi %hi(pthread_create), %o0
or %o0, %lo(pthread_create), %o0
+#endif
+#if defined SHARED && !defined BROKEN_SPARC_WDISP22
+ cmp %o0, 0
+ bne HIDDEN_JUMPTARGET(__fork)
+#else
brnz,pn %o0, 1f
#endif
mov __NR_vfork, %g1
@@ -50,7 +53,7 @@ ENTRY(__vfork)
sub %o1, 1, %o1
retl
and %o0, %o1, %o0
-#ifndef SHARED
+#if !defined SHARED || defined BROKEN_SPARC_WDISP22
1: mov %o7, %g1
call HIDDEN_JUMPTARGET(__fork)
mov %g1, %o7