+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]
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;
#endif
}
-# define VDSO_SETUP _libc_vdso_platform_setup
-#endif
+#define VDSO_SETUP _libc_vdso_platform_setup
#include <csu/init-first.c>
#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 *)
#define VDSO_IFUNC_RET(value) ((void *) (value))
#endif
-#endif
-
#endif /* _LIBC_VDSO_H */
#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>
#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>