diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-05-29 18:48:38 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-08-05 16:01:24 -0300 |
commit | 27a0914e4586b06375b20731fa6515fe30334373 (patch) | |
tree | d95d41be588110c52dc49d7c0cce6c147538268f /sysdeps/unix/sysv/linux/riscv/sysdep.h | |
parent | 503fc587f34a39e3fa12e5ff0e0b37369b436df6 (diff) | |
download | glibc-27a0914e4586b06375b20731fa6515fe30334373.tar.gz glibc-27a0914e4586b06375b20731fa6515fe30334373.tar.xz glibc-27a0914e4586b06375b20731fa6515fe30334373.zip |
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/sysdep.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/riscv/sysdep.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/riscv/sysdep.h b/sysdeps/unix/sysv/linux/riscv/sysdep.h index 5470ea3d2a..caf013a9a1 100644 --- a/sysdeps/unix/sysv/linux/riscv/sysdep.h +++ b/sysdeps/unix/sysv/linux/riscv/sysdep.h @@ -19,6 +19,9 @@ #ifndef _LINUX_RISCV_SYSDEP_H #define _LINUX_RISCV_SYSDEP_H 1 +/* Always enable vsyscalls on riscv */ +#define ALWAYS_USE_VSYSCALL 1 + #include <sysdeps/unix/sysv/linux/generic/sysdep.h> #include <tls.h> |