mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
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.
This commit is contained in:
committed by
Joseph Myers
parent
8d20a2f414
commit
f9ba9eb821
@ -17,9 +17,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;
|
||||
int (*VDSO_SYMBOL(clock_gettime)) (clockid_t, struct timespec *);
|
||||
@ -38,7 +37,6 @@ _libc_vdso_platform_setup (void)
|
||||
VDSO_SYMBOL (clock_gettime) = p;
|
||||
}
|
||||
|
||||
# define VDSO_SETUP _libc_vdso_platform_setup
|
||||
#endif
|
||||
#define VDSO_SETUP _libc_vdso_platform_setup
|
||||
|
||||
#include <csu/init-first.c>
|
||||
|
Reference in New Issue
Block a user