]> sourceware.org Git - glibc.git/commitdiff
Enable VDSO on powerpc statically linked programs (bug 19767)
authorRafael Ávila de Espíndola <rafael@espindo.la>
Mon, 26 Nov 2018 13:35:26 +0000 (11:35 -0200)
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Mon, 26 Nov 2018 13:37:19 +0000 (11:37 -0200)
[BZ #19767]
* sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
* sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
SHARED.  Include sysdep.h.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
ALWAYS_USE_VSYSCALL.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
ALWAYS_USE_VSYSCALL.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
ChangeLog
sysdeps/unix/sysv/linux/powerpc/init-first.c
sysdeps/unix/sysv/linux/powerpc/libc-vdso.h
sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h

index 04a507f2194bdbbb12aedcec3df7e64dd81f902d..77fb773aea43b7588407429d6898b651cc6832bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2018-11-26  Rafael Ávila de Espíndola  <rafael@espindo.la>
+
+       [BZ #19767]
+       * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
+       * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
+       SHARED.  Include sysdep.h.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
+       ALWAYS_USE_VSYSCALL.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
+       ALWAYS_USE_VSYSCALL.
+
 2018-11-23  Rafael Ávila de Espíndola  <rafael@espindo.la>
 
        [BZ #19767]
index 0a4becbed660540f39092af2f09c8c5d41c13c3a..c8a28008db0d00ededefd86bc5ddc2f3a8e40bc6 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;
@@ -79,7 +78,6 @@ _libc_vdso_platform_setup (void)
 #endif
 }
 
-# define VDSO_SETUP _libc_vdso_platform_setup
-#endif
+#define VDSO_SETUP _libc_vdso_platform_setup
 
 #include <csu/init-first.c>
index 5fe817d6cb6273ef9c19ca18eebbc14e33541dcf..6f55944a517d3fecbcddbfc9126387af014655f6 100644 (file)
@@ -20,8 +20,7 @@
 #ifndef _LIBC_VDSO_H
 #define _LIBC_VDSO_H
 
-#ifdef SHARED
-
+#include <sysdep.h>
 #include <sysdep-vdso.h>
 
 extern int (*VDSO_SYMBOL(gettimeofday)) (struct timeval *, void *)
@@ -69,6 +68,4 @@ extern void *VDSO_SYMBOL(sigtramp_rt32);
 #define VDSO_IFUNC_RET(value)  ((void *) (value))
 #endif
 
-#endif
-
 #endif /* _LIBC_VDSO_H */
index ec5c5250f8089e60581a7659ea7c3fb58ed33225..6fe0a9951f8406d50d09de1a2bf0249abb159652 100644 (file)
@@ -18,6 +18,9 @@
 #ifndef _LINUX_POWERPC_SYSDEP_H
 #define _LINUX_POWERPC_SYSDEP_H 1
 
+/* Always enable vsyscalls on powerpc32 */
+#define ALWAYS_USE_VSYSCALL 1
+
 #include <sysdeps/unix/sysv/linux/sysdep.h>
 #include <sysdeps/unix/powerpc/sysdep.h>
 #include <tls.h>
index 1f17f7bd5fe905c8ec730fa80b1c6213368912bc..4d4015a03d417144eb3d94714cf94bd9cea31629 100644 (file)
@@ -20,6 +20,9 @@
 #ifndef _LINUX_POWERPC_SYSDEP_H
 #define _LINUX_POWERPC_SYSDEP_H 1
 
+/* Always enable vsyscalls on powerpc64 */
+#define ALWAYS_USE_VSYSCALL 1
+
 #include <sysdeps/unix/sysv/linux/sysdep.h>
 #include <sysdeps/unix/powerpc/sysdep.h>
 #include <tls.h>
This page took 0.07902 seconds and 5 git commands to generate.