[Bug nptl/5465] New: glibc-2.7 uses vdso symbol in pthread_cond_timedwait when !SHARED
vapier at gentoo dot org
sourceware-bugzilla@sourceware.org
Mon Dec 10 01:32:00 GMT 2007
nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S was updated to call
clock_gettime via the VDSO if possible, but that vdso symbol is only provided
for SHARED code (see libc/sysdeps/unix/sysv/linux/x86_64/init-first.c). thus,
linking against libpthread.a and using pthread_cond_timedwait() on x86_64 will
cause a link failure (undefined __vdso_clock_gettime symbol).
the attached patch by Michal Januszewski will only use the vdso symbol when
SHARED is defined.
--
Summary: glibc-2.7 uses vdso symbol in pthread_cond_timedwait
when !SHARED
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: nptl
AssignedTo: drepper at redhat dot com
ReportedBy: vapier at gentoo dot org
CC: glibc-bugs at sources dot redhat dot com,toolchain at
gentoo dot org
GCC host triplet: x86_64-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=5465
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Glibc-bugs
mailing list