This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/5465] New: glibc-2.7 uses vdso symbol in pthread_cond_timedwait when !SHARED


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]