about summary refs log tree commit diff
path: root/rt/librt-compat.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-06-25 10:30:36 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-06-25 12:19:58 +0200
commit3fe3f8076e4e0d3f5cd27f85dc0aa76b2f625917 (patch)
tree405706ac72d5629cf38ae5845e755665382b29f6 /rt/librt-compat.c
parent3353a5a4cfcdc6ef58e1ec036bd3f47ebcc16f3c (diff)
downloadglibc-3fe3f8076e4e0d3f5cd27f85dc0aa76b2f625917.tar.gz
glibc-3fe3f8076e4e0d3f5cd27f85dc0aa76b2f625917.tar.xz
glibc-3fe3f8076e4e0d3f5cd27f85dc0aa76b2f625917.zip
Linux: Move lio_listio, lio_listio64 from librt to libc
The symbols were moved using scripts/move-symbol-to-libc.py.
Placeholder symbols are needed on some architectures, to keep the
GLIBC_2.1 and GLIBC_2.4 symbol versions around.

Reviewed-by: Adhemerva Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'rt/librt-compat.c')
-rw-r--r--rt/librt-compat.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/rt/librt-compat.c b/rt/librt-compat.c
index 7e5f1db940..23c87b0f3e 100644
--- a/rt/librt-compat.c
+++ b/rt/librt-compat.c
@@ -26,4 +26,16 @@ __attribute_used__
 __librt_version_placeholder_1 (void)
 {
 }
+
+# if SHLIB_COMPAT (librt, GLIBC_2_1, GLIBC_2_2)
+compat_symbol (librt, __librt_version_placeholder_1,
+               __librt_version_placeholder, GLIBC_2_1);
+# endif
+
+# if SHLIB_COMPAT (librt, GLIBC_2_4, GLIBC_2_34) \
+  && ABI_librt_GLIBC_2_4 != ABI_librt_GLIBC_2_1
+compat_symbol (librt, __librt_version_placeholder_1,
+               __librt_version_placeholder, GLIBC_2_4);
+# endif
+
 #endif