]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Enable VDSO for static linking on aarch64
authorRafael Ávila de Espíndola <rafael@espindo.la>
Tue, 27 Nov 2018 12:27:39 +0000 (12:27 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 27 Nov 2018 12:27:39 +0000 (12:27 +0000)
[BZ #19767]
* sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
* sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
* sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
Define.

ChangeLog
sysdeps/unix/sysv/linux/aarch64/init-first.c
sysdeps/unix/sysv/linux/aarch64/libc-vdso.h
sysdeps/unix/sysv/linux/aarch64/sysdep.h

index b5ed08254cf82e5428e14c08f67eeb74d72d1c54..9bf877ecb545c8523a5c8572b97b77f7e5303790 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2018-11-27  Rafael Ávila de Espíndola  <rafael@espindo.la>
+
+       [BZ #19767]
+       * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
+       * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
+       * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
+
 2018-11-26  Carlos O'Donell  <carlos@redhat.com>
 
        * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
index 4c1895a1b9be20fa2cd5692437179ec19bf207cd..cdc34bd1c1149937474da748243eb1d81451a7af 100644 (file)
@@ -16,9 +16,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifdef SHARED
-# include <dl-vdso.h>
-# include <libc-vdso.h>
+#include <dl-vdso.h>
+#include <libc-vdso.h>
 
 int (*VDSO_SYMBOL(gettimeofday)) (struct timeval *, void *) attribute_hidden;
 int (*VDSO_SYMBOL(clock_gettime)) (clockid_t, struct timespec *);
@@ -46,7 +45,6 @@ _libc_vdso_platform_setup (void)
   VDSO_SYMBOL(clock_getres) = p;
 }
 
-# define VDSO_SETUP _libc_vdso_platform_setup
-#endif
+#define VDSO_SETUP _libc_vdso_platform_setup
 
 #include <csu/init-first.c>
index 65b222866299d61f8917b64f041f133726ebac1d..c646633ae09d93c2c34bcab5c0244303d684a94f 100644 (file)
 #ifndef _LIBC_VDSO_H
 #define _LIBC_VDSO_H
 
-#ifdef SHARED
-
-# include <sysdep-vdso.h>
+#include <sysdep.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 *);
 extern int (*VDSO_SYMBOL(clock_getres)) (clockid_t, struct timespec *);
 
-#endif
-
 #endif /* _LIBC_VDSO_H */
index 9ac2f0702aee3e2095a171348a2075b422f594da..dc529d22fb226c775105c3b27bbafbc4ffcc40d9 100644 (file)
@@ -19,6 +19,9 @@
 #ifndef _LINUX_AARCH64_SYSDEP_H
 #define _LINUX_AARCH64_SYSDEP_H 1
 
+/* Always enable vsyscalls on aarch64 */
+#define ALWAYS_USE_VSYSCALL 1
+
 #include <sysdeps/unix/sysdep.h>
 #include <sysdeps/aarch64/sysdep.h>
 #include <sysdeps/unix/sysv/linux/generic/sysdep.h>