(__vfork): Check pthread_create existance, not __pthread_fork.
authordrepper <drepper>
Tue, 11 Feb 2003 06:27:53 +0000 (06:27 +0000)
committerdrepper <drepper>
Tue, 11 Feb 2003 06:27:53 +0000 (06:27 +0000)
linuxthreads/sysdeps/unix/sysv/linux/alpha/vfork.S
linuxthreads/sysdeps/unix/sysv/linux/i386/vfork.S
linuxthreads/sysdeps/unix/sysv/linux/ia64/vfork.S
linuxthreads/sysdeps/unix/sysv/linux/m68k/vfork.S
linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S
linuxthreads/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S
linuxthreads/sysdeps/unix/sysv/linux/sh/vfork.S
linuxthreads/sysdeps/unix/sysv/linux/x86_64/vfork.S

index 9002a3b..b4f35e1 100644 (file)
@@ -31,8 +31,8 @@ __LABEL(__vfork)
        ldq     t0, __libc_pthread_functions(gp) !gprel
        bne     t0, HIDDEN_JUMPTARGET (__fork) !samegp
 #else
-       .weak   __pthread_fork
-       ldq     t0, __pthread_fork(gp) !literal
+       .weak   pthread_create
+       ldq     t0, pthread_create(gp) !literal
        bne     t0, $do_fork
 #endif
 
index 95df133..c7a120d 100644 (file)
@@ -40,8 +40,8 @@ ENTRY (__vfork)
        addl    $_GLOBAL_OFFSET_TABLE_, %ecx
        cmpl    $0, __libc_pthread_functions@GOTOFF(%ecx)
 # else
-       .weak   __pthread_fork
-       movl    $__pthread_fork, %eax
+       .weak   pthread_create
+       movl    $pthread_create, %eax
        testl   %eax, %eax
 # endif
        jne     HIDDEN_JUMPTARGET (__fork)
index 5541edb..54aceda 100644 (file)
@@ -33,8 +33,8 @@ ENTRY(__vfork)
 #ifdef SHARED
        addl r14 = @gprel(__libc_pthread_functions#), gp;;
 #else
-       .weak   __pthread_fork
-       addl r14 = @ltoff(@fptr(__pthread_fork#)), gp;;
+       .weak   pthread_create
+       addl r14 = @ltoff(@fptr(pthread_create#)), gp;;
 #endif
        ld8 r14 = [r14];;
        cmp.ne p6, p7 = 0, r14
index 475bb6e..49b8a3c 100644 (file)
@@ -32,8 +32,8 @@ ENTRY (__vfork)
 #ifdef SHARED
        tstl    (__libc_pthread_functions@GOTPC, %pc)
 #else
-       .weak   __pthread_fork
-       movel   #__pthread_fork, %d0
+       .weak   pthread_create
+       movel   #pthread_create, %d0
 #endif
        jbne    HIDDEN_JUMPTARGET (__fork)
 
index e85f662..5054d5f 100644 (file)
@@ -39,9 +39,9 @@ ENTRY (__vfork)
        cmpwi   10,0
        bne-    HIDDEN_JUMPTARGET(__fork)
 # else
-       .weak   __pthread_fork
-       lis     9,__pthread_fork@ha
-       la      9,__pthread_fork@l(9)
+       .weak   pthread_create
+       lis     9,pthread_create@ha
+       la      9,pthread_create@l(9)
        cmpwi   9,0
        bne-    .Lhidden_fork
 # endif
index d2faaa1..199f001 100644 (file)
@@ -31,8 +31,8 @@ ENTRY (__vfork)
        larl    %r1,__libc_pthread_functions
        lg      %r1,0(%r1)
 #else
-       .weak   __pthread_fork
-       larl    %r1,__pthread_fork
+       .weak   pthread_create
+       larl    %r1,pthread_create
 #endif
        ltgr    %r1,%r1
        jgne    HIDDEN_JUMPTARGET(__fork)
index b118ca3..07589c1 100644 (file)
@@ -30,7 +30,7 @@ ENTRY (__vfork)
        mov.l   .Lpthread_func, r0
        mov.l   @(r0,r12), r0
 #else
-       mov.l   .Lpthread_fork, r0
+       mov.l   .Lpthread_create, r0
 #endif
        tst     r0, r0
        bf      .Lhidden_fork
@@ -53,8 +53,9 @@ ENTRY (__vfork)
 .Lpthread_func:
        .long   __libc_pthread_functions@GOTOFF
 #else
-.Lpthread_fork:
-       .long   __pthread_fork
+.Lpthread_create:
+       .weak   pthread_create
+       .long   pthread_create
 #endif
 
 .Lhidden_fork: 
index 22e2d86..9198c51 100644 (file)
@@ -30,8 +30,8 @@ ENTRY (__vfork)
 #ifdef SHARED
        cmpq    $0, __libc_pthread_functions(%rip)
 #else
-       .weak   __pthread_fork
-       movq    $__pthread_fork, %rax
+       .weak   pthread_create
+       movq    $pthread_create, %rax
        testq   %rax, %rax
 #endif
        jne     HIDDEN_JUMPTARGET (__fork)