aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/arm/libc-vdso.h
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <rafael@espindo.la>2018-12-03 20:59:22 +0000
committerJoseph Myers <joseph@codesourcery.com>2018-12-03 20:59:22 +0000
commit6af956e5c019637051ba8cfb46cfff9bbe574500 (patch)
treedaeae8dbd01fcc0c7d278faf6532e29aa4a62114 /sysdeps/unix/sysv/linux/arm/libc-vdso.h
parentf5ec0ea9eaf9753188a0bfa391b101ea8d5efc2b (diff)
downloadglibc-6af956e5c019637051ba8cfb46cfff9bbe574500.zip
glibc-6af956e5c019637051ba8cfb46cfff9bbe574500.tar.gz
glibc-6af956e5c019637051ba8cfb46cfff9bbe574500.tar.bz2
Enable VDSO for static linking on arm
I have tested that this builds and the resulting program still work. The kernel in gcc117 (which I ussed for testing) seems to be missing https://patchwork.kernel.org/patch/10060431/, so the vdso is never used. [BZ #19767] * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED. * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED. * sysdeps/unix/sysv/linux/arm/sysdep.h: Define ALWAYS_USE_VSYSCALL.
Diffstat (limited to 'sysdeps/unix/sysv/linux/arm/libc-vdso.h')
-rw-r--r--sysdeps/unix/sysv/linux/arm/libc-vdso.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/arm/libc-vdso.h b/sysdeps/unix/sysv/linux/arm/libc-vdso.h
index 52dd355..2a8979d 100644
--- a/sysdeps/unix/sysv/linux/arm/libc-vdso.h
+++ b/sysdeps/unix/sysv/linux/arm/libc-vdso.h
@@ -20,14 +20,10 @@
#ifndef _LIBC_VDSO_H
#define _LIBC_VDSO_H
-#ifdef SHARED
-
-# include <sysdep-vdso.h>
+#include <sysdep-vdso.h>
extern int (*VDSO_SYMBOL(gettimeofday)) (struct timeval *, void *)
attribute_hidden;
extern int (*VDSO_SYMBOL(clock_gettime)) (clockid_t, struct timespec *);
-#endif
-
#endif /* _LIBC_VDSO_H */