aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elf/tst-libc_dlvsym.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/elf/tst-libc_dlvsym.h b/elf/tst-libc_dlvsym.h
index 6b132dd7c3..99ef8a3ea3 100644
--- a/elf/tst-libc_dlvsym.h
+++ b/elf/tst-libc_dlvsym.h
@@ -117,8 +117,13 @@ compare_vsyms (void)
obtain an explicit handle for libc.so. */
void *libc_handle = xdlopen (LIBC_SO, RTLD_LAZY | RTLD_NOLOAD);
+
+ /* sys_errlist and sys_siglist were deprecated in glibc 2.32 and they are
+ not available on architectures with base ABI newer than 2.32. */
+#if TEST_COMPAT (libc, GLIBC_2_0, GLIBC_2_32)
compare_vsyms_1 (libc_handle, "_sys_errlist");
compare_vsyms_1 (libc_handle, "_sys_siglist");
+#endif
compare_vsyms_1 (libc_handle, "quick_exit");
xdlclose (libc_handle);