diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-03-13 01:51:12 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-03-13 01:51:12 +0000 |
commit | 7588880f50f551cb60a99e2dd2068fdc170e5435 (patch) | |
tree | 9d1a5e21e3289c84973ff351b40172c08f2d4967 /nptl/sysdeps/unix/sysv/linux/x86_64 | |
parent | 959c5bbfeee074dbd3dcef98acd41b2e53d14cec (diff) | |
download | glibc-7588880f50f551cb60a99e2dd2068fdc170e5435.tar.gz glibc-7588880f50f551cb60a99e2dd2068fdc170e5435.tar.xz glibc-7588880f50f551cb60a99e2dd2068fdc170e5435.zip |
Update.
* sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add libc_multiple_threads. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Move definition of __libc_multiple_threads to... * sysdeps/unix/sysv/linux/libc_multiple_threads.c: ...here. New file. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove unnecessary versioning. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S (__pthread_once_internal): Define. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Use shlib-compat.h macros instead of .symver directly. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/x86_64')
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S | 4 | ||||
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S | 14 | ||||
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S | 15 | ||||
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S | 14 |
4 files changed, 17 insertions, 30 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S b/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S index 97a21d0a9f..c01da52649 100644 --- a/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S +++ b/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S @@ -118,6 +118,10 @@ __pthread_once: .size __pthread_once,.-__pthread_once + + .globl __pthread_once_internal +__pthread_once_internal = __pthread_once + .globl pthread_once pthread_once = __pthread_once diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S b/nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S index 43e73e2152..21ec6fd226 100644 --- a/nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S +++ b/nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S @@ -33,10 +33,10 @@ .text - .globl __new_sem_post - .type __new_sem_post,@function + .globl sem_post + .type sem_post,@function .align 16 -__new_sem_post: +sem_post: movl $1, %edx LOCK xaddl %edx, (%rdi) @@ -63,10 +63,4 @@ __new_sem_post: orl $-1, %eax retq - .size __new_sem_post,.-__new_sem_post - .symver __new_sem_post, sem_post@@GLIBC_2.1 -#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1) - .global __old_sem_post -__old_sem_post = __new_sem_post - .symver __old_sem_post, sem_post@GLIBC_2.0 -#endif + .size sem_post,.-sem_post diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S b/nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S index 8c93dcaa07..5f0f3d5d12 100644 --- a/nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S +++ b/nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S @@ -33,10 +33,10 @@ .text - .globl __new_sem_trywait - .type __new_sem_trywait,@function + .globl sem_trywait + .type sem_trywait,@function .align 16 -__new_sem_trywait: +sem_trywait: movl (%rdi), %eax 2: testl %eax, %eax jz 1f @@ -59,10 +59,5 @@ __new_sem_trywait: #endif orl $-1, %eax retq - .size __new_sem_trywait,.-__new_sem_trywait - .symver __new_sem_trywait, sem_trywait@@GLIBC_2.1 -#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1) - .global __old_sem_trywait -__old_sem_trywait = __new_sem_trywait - .symver __old_sem_trywait, sem_trywait@GLIBC_2.0 -#endif + .size sem_trywait,.-sem_trywait + versioned_symbol(libpthread, __new_sem_trywait, sem_trywait, GLIBC_2_1) diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S b/nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S index 2d13a95da5..877ee4c4dc 100644 --- a/nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S +++ b/nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S @@ -32,10 +32,10 @@ .text - .globl __new_sem_wait - .type __new_sem_wait,@function + .globl sem_wait + .type sem_wait,@function .align 16 -__new_sem_wait: +sem_wait: 3: movl (%rdi), %eax 2: testl %eax, %eax je 1f @@ -69,10 +69,4 @@ __new_sem_wait: #endif orl $-1, %eax retq - .size __new_sem_wait,.-__new_sem_wait - .symver __new_sem_wait, sem_wait@@GLIBC_2.1 -#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1) - .global __old_sem_wait -__old_sem_wait = __new_sem_wait - .symver __old_sem_wait, sem_wait@GLIBC_2.0 -#endif + .size sem_wait,.-sem_wait |