1
0
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:
Adhemerval Zanella
2019-12-11 11:13:50 -03:00
parent 1bdda52fe9
commit ff500a623d
9 changed files with 34 additions and 12 deletions

View File

@ -45,7 +45,11 @@
# define VDSO_HASH 61765110
/* List of system calls which are supported as vsyscalls. */
# define HAVE_CLOCK_GETTIME_VSYSCALL "__vdso_clock_gettime"
# ifdef __arch64__
# define HAVE_CLOCK_GETTIME64_VSYSCALL "__vdso_clock_gettime"
# else
# define HAVE_CLOCK_GETTIME_VSYSCALL "__vdso_clock_gettime"
# endif
# define HAVE_GETTIMEOFDAY_VSYSCALL "__vdso_gettimeofday"
#undef INLINE_SYSCALL