]> sourceware.org Git - glibc.git/commitdiff
sparc: Enable VDSO for static linking
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 30 May 2019 12:47:48 +0000 (09:47 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 5 Aug 2019 19:38:25 +0000 (16:38 -0300)
Checked on sparc64-linux-gnu and sparcv9-linux-gnu.

[BZ #19767]
* sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
* sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
Define.

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

index c9d7631962eb69617d21259f3f1a8aa89b3530e8..5fd201987826b9e3d8ce3805e037ef187e89d09e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2019-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
+       [BZ #19767]
+       * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
+       * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
+       Define.
+
        [BZ #19767]
        * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
        * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
index de833217138fa1456d5092fa6c133d752f5e81b7..643d6c7c88ebaee8d3b3bf85ba56535dc6ac67e2 100644 (file)
@@ -17,9 +17,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>
 
 long int (*VDSO_SYMBOL (gettimeofday)) (struct timeval *, void *)
     attribute_hidden;
@@ -40,7 +39,6 @@ _libc_vdso_platform_setup (void)
   VDSO_SYMBOL (clock_gettime) = p;
 }
 
-# define VDSO_SETUP _libc_vdso_platform_setup
-#endif
+#define VDSO_SETUP _libc_vdso_platform_setup
 
 #include <csu/init-first.c>
index 4009b00a28c87b529d2182e9c274eb0fe0abb7d7..d20afcdf04bb725ca761c5edc8396e2389f85cf4 100644 (file)
 #ifndef _LIBC_VDSO_H
 #define _LIBC_VDSO_H
 
-#ifdef SHARED
-
-# include <sysdep-vdso.h>
+#include <sysdep-vdso.h>
 
 extern long int (*VDSO_SYMBOL(gettimeofday)) (struct timeval *, void *)
    attribute_hidden;
 extern long int (*VDSO_SYMBOL(clock_gettime)) (clockid_t, struct timespec *);
 
-#endif
-
 #endif /* _LIBC_VDSO_H */
index 981b2a26b7a91093f821c97876e55bc4be2d9f8a..fc4053c5ce6c0a0e6e87b06e0a55a9e3a29bee13 100644 (file)
@@ -19,6 +19,9 @@
 #ifndef _LINUX_SPARC_SYSDEP_H
 #define _LINUX_SPARC_SYSDEP_H 1
 
+/* Always enable vsyscalls on sparc */
+#define ALWAYS_USE_VSYSCALL 1
+
 #include <sysdeps/unix/sysdep.h>
 #include <sysdeps/unix/sysv/linux/sysdep.h>
 #include <sysdeps/sparc/sysdep.h>
This page took 0.070074 seconds and 5 git commands to generate.