2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
+ [BZ #19767]
+ * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
+ * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
+ * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
+ (ALWAYS_USE_VSYSCALL): Define.
+ * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
+ (ALWAYS_USE_VSYSCALL): Likewise.
+
[BZ #19767]
* sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
* sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
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;
VDSO_SYMBOL (getcpu) = p;
}
-# define VDSO_SETUP _libc_vdso_platform_setup
-#endif
-
#include <csu/init-first.c>
#ifndef _LIBC_VDSO_H
#define _LIBC_VDSO_H
-#ifdef SHARED
-
#include <sysdep-vdso.h>
extern long int (*VDSO_SYMBOL(gettimeofday)) (struct timeval *, void *)
extern long int (*VDSO_SYMBOL(getcpu)) (unsigned *, unsigned *, void *)
attribute_hidden;
-#endif
#endif /* _LIBC_VDSO_H */
#ifndef _LINUX_S390_SYSDEP_H
#define _LINUX_S390_SYSDEP_H
+/* Always enable vsyscalls on s390-32. */
+#define ALWAYS_USE_VSYSCALL 1
+
#include <sysdeps/s390/s390-32/sysdep.h>
#include <sysdeps/unix/sysdep.h>
#include <sysdeps/unix/sysv/linux/sysdep.h>
#ifndef _LINUX_S390_SYSDEP_H
#define _LINUX_S390_SYSDEP_H
+/* Always enable vsyscalls on s390-64. */
+#define ALWAYS_USE_VSYSCALL 1
+
#include <sysdeps/s390/s390-64/sysdep.h>
#include <sysdeps/unix/sysdep.h>
#include <sysdeps/unix/sysv/linux/sysdep.h>