]> git.ipfire.org Git - thirdparty/glibc.git/commit
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)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 8 Feb 2023 08:32:42 +0000 (09:32 +0100)
commit11ad405fd4c4c9f320d461d9ae1dd2e087cc8c32
treec29761429151b2681262657d0e9d30ba0dfffb87
parent48059f2b218c0e1d4bea7e3d9fc4854c86a51c85
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.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
(cherry picked from commit 9fe6f6363886aae6b2b210cae3ed1f5921299083)
elf/cache.c
elf/chroot_canon.c
elf/ldconfig.c
elf/readlib.c
elf/sln.c
sysdeps/generic/ldconfig.h