glibc/sysdeps/unix/sysv/linux/x86
Adhemerval Zanella d0def09ff6 linux: Fix vDSO macros build with time64 interfaces
As indicated on libc-help [1] the ec138c67cb commit broke 32-bit
builds when configured with --enable-kernel=5.1 or higher.  The
scenario 10 from [2] might also occur in this configuration and
INLINE_VSYSCALL will try to use the vDSO symbol and
HAVE_CLOCK_GETTIME64_VSYSCALL does not set HAVE_VSYSCALL prior its
usage.

Also, there is no easy way to just enable the code to use one
vDSO symbol since the macro INLINE_VSYSCALL is redefined if
HAVE_VSYSCALL is set.

Instead of adding more pre-processor handling and making the code
even more convoluted, this patch removes the requirement of defining
HAVE_VSYSCALL before including sysdep-vdso.h to enable vDSO usage.

The INLINE_VSYSCALL is now expected to be issued inside a
HAVE_*_VSYSCALL check, since it will try to use the internal vDSO
pointers.

Both clock_getres and clock_gettime vDSO code for time64_t were
removed since there is no vDSO setup code for the symbol (an
architecture can not set HAVE_CLOCK_GETTIME64_VSYSCALL).

Checked on i686-linux-gnu (default and with --enable-kernel=5.1),
x86_64-linux-gnu, aarch64-linux-gnu, and powerpc64le-linux-gnu.
I also checked against a build to mips64-linux-gnu and
sparc64-linux-gnu.

[1] https://sourceware.org/ml/libc-help/2019-12/msg00014.html
[2] https://sourceware.org/ml/libc-alpha/2019-12/msg00142.html

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
2020-01-03 10:02:05 -03:00
..
bits Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
include/asm x86/CET: Extend arch_prctl syscall for CET control 2018-07-24 12:23:17 -07:00
sys Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
arch-pkey.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
cpu-features.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-cet.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-sysdep.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
elision-conf.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
elision-conf.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
elision-lock.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
elision-timed.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
elision-trylock.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
elision-unlock.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
force-elision.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gettimeofday.c linux: Fix vDSO macros build with time64 interfaces 2020-01-03 10:02:05 -03:00
hle.h x86: Use RTM intrinsics in pthread mutex lock elision 2018-10-02 07:51:57 -07:00
Implies
jmp_buf-ssp.sym x86: Make a space in jmpbuf for shadow stack pointer 2017-11-30 04:58:01 -08:00
lowlevellock.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Makefile x86: Use RTM intrinsics in pthread mutex lock elision 2018-10-02 07:51:57 -07:00
pkey_get.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pkey_set.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pthread_mutex_cond_lock.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pthread_mutex_lock.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pthread_mutex_timedlock.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pthread_mutex_trylock.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
setjmpP.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sysconf.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
time.c linux: Fix vDSO macros build with time64 interfaces 2020-01-03 10:02:05 -03:00
tst-cet-property-1.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-cet-property-2.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-cet-property-dep-2.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-cet-setcontext-1.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-saved_mask-1.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00