about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/mips/mips64/n64
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <rafael@espindo.la>2018-12-10 21:27:54 +0000
committerJoseph Myers <joseph@codesourcery.com>2018-12-10 21:27:54 +0000
commitf9ba9eb821c96ae41038460ee1fcd42308e074f2 (patch)
treeaef1c7d7f5afed635afd425dad005f77a1239e9d /sysdeps/unix/sysv/linux/mips/mips64/n64
parent8d20a2f414fa52aceef8a0e3675415df54a840db (diff)
downloadglibc-f9ba9eb821c96ae41038460ee1fcd42308e074f2.tar.gz
glibc-f9ba9eb821c96ae41038460ee1fcd42308e074f2.tar.xz
glibc-f9ba9eb821c96ae41038460ee1fcd42308e074f2.zip
Enable VDSO for static linking on mips
I have tested that this builds and the resulting program still work.

This was tested on gcc23.fsffrance.org, and for some reason the vdso
there seems unused even when using shared libraries.

	[BZ #19767]
	* sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
        * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
        * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
	ALWAYS_USE_VSYSCALL.
        * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
	ALWAYS_USE_VSYSCALL.
	* sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
	ALWAYS_USE_VSYSCALL.
Diffstat (limited to 'sysdeps/unix/sysv/linux/mips/mips64/n64')
-rw-r--r--sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h b/sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
index c9046a06b8..7c71d1ed12 100644
--- a/sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
+++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
@@ -18,6 +18,9 @@
 #ifndef _LINUX_MIPS_SYSDEP_H
 #define _LINUX_MIPS_SYSDEP_H 1
 
+/* Always enable vsyscalls on n64.  */
+#define ALWAYS_USE_VSYSCALL 1
+
 /* There is some commonality.  */
 #include <sysdeps/unix/sysv/linux/sysdep.h>
 #include <sysdeps/unix/mips/mips64/n64/sysdep.h>