This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 5465
  glibc-2.7 uses vdso symbol in pthread_cond_timedwait when !SHARED Last modified: 2007-12-12 08:07:52
     Query page      Enter new bug
Bug#: 5465   Hardware:   Reporter: Mike Frysinger <vapier@gentoo.org>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   Priority:  
Resolution: FIXED   Severity:  
Assigned To: Ulrich Drepper <drepper@redhat.com>   Target Milestone:  
Flags: Requestee:
  backport ()
  examined ()
  testsuite ()
Summary:
Keywords:

Attachment Description Type Created Actions
glibc-libpthread-x86-64-vdso-SHARED.patch glibc-libpthread-x86-64-vdso-SHARED.patch patch 2007-12-10 01:32 Edit | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 5465 depends on: Show dependency tree
Show dependency graph
Bug 5465 blocks:

Additional Comments:


Leave as RESOLVED FIXED
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2007-12-10 01:31
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.

------- Additional Comment #1 From Mike Frysinger 2007-12-10 01:32 -------
Created an attachment (id=2131)
glibc-libpthread-x86-64-vdso-SHARED.patch

------- Additional Comment #2 From Ulrich Drepper 2007-12-12 08:07 -------
Patch is in cvs.

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In