Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/glibc/2.7: 1065_all_glibc-x86_64-libpthread-no-vdso.patch
Date: Mon, 10 Dec 2007 01:17:20
Message-Id: E1J1XGk-0000Tp-LP@stork.gentoo.org
1 vapier 07/12/10 01:17:14
2
3 Added: 1065_all_glibc-x86_64-libpthread-no-vdso.patch
4 Log:
5 fix for #198949
6
7 Revision Changes Path
8 1.1 src/patchsets/glibc/2.7/1065_all_glibc-x86_64-libpthread-no-vdso.patch
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.7/1065_all_glibc-x86_64-libpthread-no-vdso.patch?rev=1.1&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.7/1065_all_glibc-x86_64-libpthread-no-vdso.patch?rev=1.1&content-type=text/plain
12
13 Index: 1065_all_glibc-x86_64-libpthread-no-vdso.patch
14 ===================================================================
15 __vdso_clock_gettime is in libc/sysdeps/unix/sysv/linux/x86_64/init-first.c
16 and is only defined for SHARED, so we cannot use it when !SHARED. otherwise,
17 static linking against pthread_cond_timedwait() libpthread.a fails.
18
19 http://bugs.gentoo.org/198949
20
21 Patch by Michal Januszewski.
22
23 --- libc/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
24 +++ libc/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
25 @@ -134,12 +134,14 @@ __pthread_cond_timedwait:
26 /* Only clocks 0 and 1 are allowed so far. Both are handled in the
27 kernel. */
28 leaq 24(%rsp), %rsi
29 +# ifdef SHARED
30 movq __vdso_clock_gettime@GOTPCREL(%rip), %rax
31 movq (%rax), %rax
32 PTR_DEMANGLE (%rax)
33 jz 26f
34 call *%rax
35 jmp 27f
36 +# endif
37 26: movl $__NR_clock_gettime, %eax
38 syscall
39 27:
40
41
42
43 --
44 gentoo-commits@g.o mailing list