From ca677d3c3cd0eba7d1f03092517aea553a0e8569 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 27 Jun 2014 14:00:18 -0700 Subject: Add x86 32 bit vDSO time function support Linux 3.15 adds support for clock_gettime, gettimeofday, and time vDSO (commit id 37c975545ec63320789962bf307f000f08fabd48). This patch adds GLIBC supports to use such symbol when they are avaiable. Along with x86 vDSO support, this patch cleanup x86_64 code by moving all common code to x86 common folder. Only init-first.c is different between implementations. --- ChangeLog | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index cb510f8a79..d671b11533 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,30 @@ +2015-01-12 Adhemerval Zanella + Stefani Seibold + + * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf] + (sysdep_routines): Add dl-vdso here, ... + * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf] + (sysdep_routines): ... not here. + * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall + fallback when vDSO is not presented. + * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime): + Define with libc_hidden_proto/libc_hidden_data_def definitions. + (_libc_vdso_platform_setup): Rename to __vdso_platform_setup. + * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise. + * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise. + * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ... + * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here. + * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ... + * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here. + * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ... + * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here. Also added + fallback configurable symbol when vDSO is not available. + * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ... + * sysdeps/unix/sysv/linux/x86/time.c: ... here. Also refactored to + be able to redefine fallback symbol when vDSO is not available. + * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ... + * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here. + 2015-01-12 Adhemerval Zanella * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field. -- cgit 1.4.1