* [gentoo-commits] gentoo commit in src/patchsets/glibc/2.7: 1065_all_glibc-x86_64-libpthread-no-vdso.patch
@ 2007-12-10 1:17 Mike Frysinger (vapier)
0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2007-12-10 1:17 UTC (permalink / raw
To: gentoo-commits
vapier 07/12/10 01:17:14
Added: 1065_all_glibc-x86_64-libpthread-no-vdso.patch
Log:
fix for #198949
Revision Changes Path
1.1 src/patchsets/glibc/2.7/1065_all_glibc-x86_64-libpthread-no-vdso.patch
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
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
Index: 1065_all_glibc-x86_64-libpthread-no-vdso.patch
===================================================================
__vdso_clock_gettime is in libc/sysdeps/unix/sysv/linux/x86_64/init-first.c
and is only defined for SHARED, so we cannot use it when !SHARED. otherwise,
static linking against pthread_cond_timedwait() libpthread.a fails.
http://bugs.gentoo.org/198949
Patch by Michal Januszewski.
--- libc/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
+++ libc/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
@@ -134,12 +134,14 @@ __pthread_cond_timedwait:
/* Only clocks 0 and 1 are allowed so far. Both are handled in the
kernel. */
leaq 24(%rsp), %rsi
+# ifdef SHARED
movq __vdso_clock_gettime@GOTPCREL(%rip), %rax
movq (%rax), %rax
PTR_DEMANGLE (%rax)
jz 26f
call *%rax
jmp 27f
+# endif
26: movl $__NR_clock_gettime, %eax
syscall
27:
--
gentoo-commits@gentoo.org mailing list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-10 1:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-10 1:17 [gentoo-commits] gentoo commit in src/patchsets/glibc/2.7: 1065_all_glibc-x86_64-libpthread-no-vdso.patch Mike Frysinger (vapier)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox