]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
aarch64: fix VDSO setup to only apply to known ABIs
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 11 May 2022 09:30:36 +0000 (10:30 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 27 Oct 2022 13:46:50 +0000 (14:46 +0100)
New syscall ABI requires different VDSO support code.

sysdeps/unix/sysv/linux/aarch64/sysdep.h

index f1853e012ffd2b6d023851a91e2960226ffaccfb..f5b488921f0d15c9a2af798e6a5c5f699b5f6a39 100644 (file)
 # ifdef __LP64__
 #  define VDSO_NAME  "LINUX_2.6.39"
 #  define VDSO_HASH  123718537
-# else
+# elif defined __ILP32__
 #  define VDSO_NAME  "LINUX_4.9"
 #  define VDSO_HASH  61765625
 # endif
 
+# ifdef VDSO_NAME
 /* List of system calls which are supported as vsyscalls.  */
 # define HAVE_CLOCK_GETRES64_VSYSCALL  "__kernel_clock_getres"
 # define HAVE_CLOCK_GETTIME64_VSYSCALL "__kernel_clock_gettime"
 # define HAVE_GETTIMEOFDAY_VSYSCALL    "__kernel_gettimeofday"
+# endif
 
 # undef INTERNAL_SYSCALL_RAW
 # define INTERNAL_SYSCALL_RAW(name, nr, args...)               \