mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
linux: Add support for clock_gettime64 vDSO
No architecture currently defines the vDSO symbol. On architectures with 64-bit time_t the HAVE_CLOCK_GETTIME_VSYSCALL is renamed to HAVE_CLOCK_GETTIME64_VSYSCALL, it simplifies clock_gettime code. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
This commit is contained in:
@ -26,6 +26,9 @@ setup_vdso_pointers (void)
|
||||
#ifdef HAVE_CLOCK_GETTIME_VSYSCALL
|
||||
GLRO(dl_vdso_clock_gettime) = dl_vdso_vsym (HAVE_CLOCK_GETTIME_VSYSCALL);
|
||||
#endif
|
||||
#ifdef HAVE_CLOCK_GETTIME64_VSYSCALL
|
||||
GLRO(dl_vdso_clock_gettime64) = dl_vdso_vsym (HAVE_CLOCK_GETTIME64_VSYSCALL);
|
||||
#endif
|
||||
#ifdef HAVE_GETTIMEOFDAY_VSYSCALL
|
||||
GLRO(dl_vdso_gettimeofday) = dl_vdso_vsym (HAVE_GETTIMEOFDAY_VSYSCALL);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user