aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-05-11 10:30:36 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-27 14:46:50 +0100
commit113977dd073c928b137985dd9a5ace3f5526c70c (patch)
tree7f919a5e94fd114e9b8d92330f31454de62b5baf /sysdeps/unix/sysv/linux
parent9733f57ff3f664c735dbe15f4839c534aeecf41c (diff)
downloadglibc-113977dd073c928b137985dd9a5ace3f5526c70c.tar
glibc-113977dd073c928b137985dd9a5ace3f5526c70c.tar.gz
glibc-113977dd073c928b137985dd9a5ace3f5526c70c.tar.bz2
glibc-113977dd073c928b137985dd9a5ace3f5526c70c.zip
aarch64: fix VDSO setup to only apply to known ABIs
New syscall ABI requires different VDSO support code.
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r--sysdeps/unix/sysv/linux/aarch64/sysdep.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/sysdep.h b/sysdeps/unix/sysv/linux/aarch64/sysdep.h
index f1853e012f..f5b488921f 100644
--- a/sysdeps/unix/sysv/linux/aarch64/sysdep.h
+++ b/sysdeps/unix/sysv/linux/aarch64/sysdep.h
@@ -154,15 +154,17 @@
# 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...) \