]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hppa/vdso: Provide 64-bit clock_gettime() vDSO only
authorJohn David Anglin <danglin@gcc.gnu.org>
Tue, 2 Jul 2024 20:26:32 +0000 (16:26 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Tue, 2 Jul 2024 20:26:32 +0000 (16:26 -0400)
Adhemerval noticed that the gettimeofday() and 32-bit clock_gettime()
vDSO calls won't be used by glibc on hppa, so there is no need to
declare them.  Both syscalls will be emulated by utilizing return values
of the 64-bit clock_gettime() vDSO instead.

Signed-off-by: Helge Deller <deller@gmx.de>
Suggested-by: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/hppa/sysdep.h

index af62f7501ef26bc4900d491bea7712d4af588ac6..e47975e5cf5ac2fbe41ada61a59d05456a067758 100644 (file)
@@ -473,11 +473,8 @@ L(pre_end):                                        ASM_LINE_SEP    \
 
 #ifdef __LP64__
 # define HAVE_CLOCK_GETTIME_VSYSCALL    "__vdso_clock_gettime"
-# define HAVE_GETTIMEOFDAY_VSYSCALL     "__vdso_gettimeofday"
 #else
-# define HAVE_CLOCK_GETTIME_VSYSCALL    "__vdso_clock_gettime"
 # define HAVE_CLOCK_GETTIME64_VSYSCALL  "__vdso_clock_gettime64"
-# define HAVE_GETTIMEOFDAY_VSYSCALL     "__vdso_gettimeofday"
 #endif /* __LP64__ */
 
 #endif /* __ASSEMBLER__ */