Add missing VDSO_{NAME,HASH}_* macros and use them for PREPARE_VERSION_KNOWN
authorTobias Klauser <tklauser@distanz.ch>
Fri, 21 Jun 2019 13:36:52 +0000 (10:36 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 21 Jun 2019 13:43:22 +0000 (10:43 -0300)
commit85c748f9ff3db4a7796472f90d4d80e9987b7922
tree72c9e135c9667ca02fa73e96d59c66731cd8e906
parentce5b73a7c3d8caefc72ac3b95490861e3ee13520
Add missing VDSO_{NAME,HASH}_* macros and use them for PREPARE_VERSION_KNOWN

Define all currently used Linux versions used for
PREPARE_VERSION{,_KNOWN} in sysdeps/unix/sysv/linux/dl-vdso.h and use
them instead of duplicating the versions and precomputed hashes across
architecture specific files.

* sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
PREPARE_VERSION_KNOWN.
* sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
* sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
define.
(VDSO_HASH_LINUX_2_6_39): Likewise.
(VDSO_NAME_LINUX_4_9): Likewise.
(VDSO_HASH_LINUX_4_9): Likewise.
* sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
* sysdeps/unix/sysv/linux/powerpc/init-first.c
(_libc_vdso_platform_setup): Likewise.
* sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
* sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
Likewise.
* sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
Likewise.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
ChangeLog
sysdeps/unix/sysv/linux/aarch64/gettimeofday.c
sysdeps/unix/sysv/linux/aarch64/init-first.c
sysdeps/unix/sysv/linux/dl-vdso.h
sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
sysdeps/unix/sysv/linux/powerpc/init-first.c
sysdeps/unix/sysv/linux/powerpc/time.c
sysdeps/unix/sysv/linux/s390/init-first.c
sysdeps/unix/sysv/linux/x86_64/init-first.c