1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Revert "linux: Move {f}xstat{at} to compat symbols"

This reverts commit 20b39d5946 to move
{f}xstat{at} back to default symbols.  ABIs with default symbol version
of 2.33 or newer (such as riscv32) continue to just provide the stat
symbols.

The idea is to not force static libraries built against old glibc
to update against new glibcs (since they reference the old
{f}xstat{at} symbols).

Checked on x86_64-linux-gnu and i686-linux-gnu.
This commit is contained in:
Adhemerval Zanella
2020-12-02 13:51:57 -03:00
parent be5365e87b
commit 22edf4d4b2
20 changed files with 11 additions and 133 deletions

View File

@ -31,7 +31,6 @@
/* Get information about the file NAME in BUF. */
int
attribute_compat_text_section
___lxstat64 (int vers, const char *name, struct stat64 *buf)
{
#if XSTAT_IS_XSTAT64
@ -85,17 +84,15 @@ ___lxstat64 (int vers, const char *name, struct stat64 *buf)
}
#if SHLIB_COMPAT(libc, GLIBC_2_1, GLIBC_2_2)
compat_symbol (libc, ___lxstat64, __lxstat64, GLIBC_2_2);
versioned_symbol (libc, ___lxstat64, __lxstat64, GLIBC_2_2);
strong_alias (___lxstat64, __old__lxstat64)
compat_symbol (libc, __old__lxstat64, __lxstat64, GLIBC_2_1);
#else
strong_alias (___lxstat64, __lxstat64);
compat_symbol (libc, ___lxstat64, __lxstat64, GLIBC_2_2);
#endif
#if XSTAT_IS_XSTAT64
strong_alias (___lxstat64,__lxstat_compat)
compat_symbol (libc, __lxstat_compat, __lxstat, GLIBC_2_2);
strong_alias (___lxstat64,__lxstat)
#endif
#endif /* SHLIB_COMPAT */