elf: Fix 64 time_t support for installed statically binaries
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 29 Dec 2021 13:20:46 +0000 (10:20 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 12 Jan 2022 13:30:10 +0000 (10:30 -0300)
commit0b8e83eb1455f3c0332eeb1f96fbc262fbd054e0
tree118b87b249be509983be0295e9022c15823d4e65
parent86bf0feb0e3ec8e37872f72499d6ae33406561d7
elf: Fix 64 time_t support for installed statically binaries

The usage of internal static symbol for statically linked binaries
does not work correctly for objects built with -D_TIME_BITS=64,
since the internal definition does not provide the expected aliases.

This patch makes it to use the default stat functions instead (which
uses the default 64 time_t alias and types).

Checked on i686-linux-gnu.
elf/cache.c
elf/chroot_canon.c
elf/ldconfig.c
elf/readlib.c
elf/sln.c
sysdeps/generic/ldconfig.h