about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/powerpc/init-first.c
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <rafael@espindo.la>2018-11-26 11:35:26 -0200
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>2018-11-26 11:37:19 -0200
commit8ae74eadb60eb36424e4605939cef5fc966724be (patch)
treea2ae2026fd43c2136a0d1554a573744ced8be659 /sysdeps/unix/sysv/linux/powerpc/init-first.c
parent1e8bdc3a2b3e8d6e26efd14d44ae71d21d8366fe (diff)
downloadglibc-8ae74eadb60eb36424e4605939cef5fc966724be.tar.gz
glibc-8ae74eadb60eb36424e4605939cef5fc966724be.tar.xz
glibc-8ae74eadb60eb36424e4605939cef5fc966724be.zip
Enable VDSO on powerpc statically linked programs (bug 19767)
	[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>
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc/init-first.c')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/init-first.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/init-first.c b/sysdeps/unix/sysv/linux/powerpc/init-first.c
index 0a4becbed6..c8a28008db 100644
--- a/sysdeps/unix/sysv/linux/powerpc/init-first.c
+++ b/sysdeps/unix/sysv/linux/powerpc/init-first.c
@@ -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>