summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/riscv/libc-vdso.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-05-29 18:48:38 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-08-05 16:01:24 -0300
commit27a0914e4586b06375b20731fa6515fe30334373 (patch)
treed95d41be588110c52dc49d7c0cce6c147538268f /sysdeps/unix/sysv/linux/riscv/libc-vdso.h
parent503fc587f34a39e3fa12e5ff0e0b37369b436df6 (diff)
downloadglibc-27a0914e4586b06375b20731fa6515fe30334373.tar.gz
riscv: Enable VDSO for static linking
Checked on riscv64-linux-gnu-rv64imafdc-lp64d qemu system with some static tests. [BZ #19767] * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED. * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise. * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL): Define.
Diffstat (limited to 'sysdeps/unix/sysv/linux/riscv/libc-vdso.h')
-rw-r--r--sysdeps/unix/sysv/linux/riscv/libc-vdso.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/riscv/libc-vdso.h b/sysdeps/unix/sysv/linux/riscv/libc-vdso.h
index b0c46f3cb7..2373292ab9 100644
--- a/sysdeps/unix/sysv/linux/riscv/libc-vdso.h
+++ b/sysdeps/unix/sysv/linux/riscv/libc-vdso.h
@@ -20,9 +20,7 @@
#ifndef _LIBC_VDSO_H
#define _LIBC_VDSO_H
-#ifdef SHARED
-
-# include <sysdep-vdso.h>
+#include <sysdep-vdso.h>
extern long int (*VDSO_SYMBOL (getcpu)) (unsigned int *, unsigned int *, void *)
attribute_hidden;
@@ -33,6 +31,4 @@ extern long int (*VDSO_SYMBOL (clock_gettime)) (clockid_t, struct timespec *)
extern long int (*VDSO_SYMBOL (clock_getres)) (clockid_t, struct timespec *)
attribute_hidden;
-#endif
-
#endif /* _LIBC_VDSO_H */