]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Revert "linux: Move xmknod{at} to compat symbols"
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 22 Oct 2020 18:24:12 +0000 (15:24 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 2 Dec 2020 17:45:22 +0000 (14:45 -0300)
This reverts commit 81b83ff61f95f30ad53d6075247af0ea61a0b16e to move
__xmknod{at} back to default symbols.  ABIs with default symbol version
of 2.33 or newer (such as riscv32) continue to just provide the mknod*
symbols.

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

Checked on x86_64-linux-gnu and i686-linux-gnu.

sysdeps/unix/sysv/linux/xmknod.c
sysdeps/unix/sysv/linux/xmknodat.c

index 10e874a514782e2925e44c2a951e14fac5a33d25..0a23a1237c5d3e1fa991c98d3a000180dbe8cc45 100644 (file)
@@ -27,7 +27,6 @@
    and device number DEV (which can be constructed from major and minor
    device numbers with the `makedev' macro above).  */
 int
-attribute_compat_text_section
 __xmknod (int vers, const char *path, mode_t mode, dev_t *dev)
 {
   if (vers != _MKNOD_VER)
@@ -35,6 +34,4 @@ __xmknod (int vers, const char *path, mode_t mode, dev_t *dev)
 
   return __mknodat (AT_FDCWD, path, mode, *dev);
 }
-
-compat_symbol (libc, __xmknod, __xmknod, GLIBC_2_0);
 #endif
index 17ffea16c9671a6f8da4b76c356be23f7909c651..68402a3bf533daf41ebbabfb7264a59e9394f4c3 100644 (file)
@@ -32,6 +32,4 @@ __xmknodat (int vers, int fd, const char *file, mode_t mode, dev_t *dev)
 
   return __mknodat (fd, file, mode, *dev);
 }
-
-compat_symbol (libc, __xmknodat, __xmknodat, GLIBC_2_4);
 #endif