diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-12-02 13:51:57 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-12-02 14:45:22 -0300 |
commit | 22edf4d4b2fe9bfb4bd7376467d0958e22b04f23 (patch) | |
tree | f9ddd0c3f87d51b68c2985abfab6727a275b8a75 /sysdeps/unix/sysv/linux/fxstat64.c | |
parent | be5365e87b0fd7c51009762995c0603d9962a1a3 (diff) | |
download | glibc-22edf4d4b2fe9bfb4bd7376467d0958e22b04f23.tar glibc-22edf4d4b2fe9bfb4bd7376467d0958e22b04f23.tar.gz glibc-22edf4d4b2fe9bfb4bd7376467d0958e22b04f23.tar.bz2 glibc-22edf4d4b2fe9bfb4bd7376467d0958e22b04f23.zip |
Revert "linux: Move {f}xstat{at} to compat symbols"
This reverts commit 20b39d59467b0c1d858e89ded8b0cebe55e22f60 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.
Diffstat (limited to 'sysdeps/unix/sysv/linux/fxstat64.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/fxstat64.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/fxstat64.c b/sysdeps/unix/sysv/linux/fxstat64.c index 4bd926bf01..9471d0be45 100644 --- a/sysdeps/unix/sysv/linux/fxstat64.c +++ b/sysdeps/unix/sysv/linux/fxstat64.c @@ -31,7 +31,6 @@ /* Get information about the file FD in BUF. */ int -attribute_compat_text_section ___fxstat64 (int vers, int fd, struct stat64 *buf) { #if XSTAT_IS_XSTAT64 @@ -68,17 +67,15 @@ ___fxstat64 (int vers, int fd, struct stat64 *buf) } #if SHLIB_COMPAT(libc, GLIBC_2_1, GLIBC_2_2) -compat_symbol (libc, ___fxstat64, __fxstat64, GLIBC_2_2); +versioned_symbol (libc, ___fxstat64, __fxstat64, GLIBC_2_2); strong_alias (___fxstat64, __old__fxstat64) compat_symbol (libc, __old__fxstat64, __fxstat64, GLIBC_2_1); #else strong_alias (___fxstat64, __fxstat64) -compat_symbol (libc, ___fxstat64, __fxstat64, GLIBC_2_2); #endif #if XSTAT_IS_XSTAT64 -strong_alias (___fxstat64, __fxstat_compat) -compat_symbol (libc, __fxstat_compat, __fxstat, GLIBC_2_2); +strong_alias (___fxstat64, __fxstat) #endif #endif /* SHLIB_COMPAT */ |