glibc/SOURCES/glibc-rh2119304-3.patch

20 lines
682 B
Diff
Raw Normal View History

2022-11-08 06:58:46 +00:00
Downstream-only patch to preserve the 8.6.0 _rtld_global_ro ABI on s390x.
diff --git a/sysdeps/s390/dl-procinfo.c b/sysdeps/s390/dl-procinfo.c
index f928b485609a3b8a..3f46b2785fafe51e 100644
--- a/sysdeps/s390/dl-procinfo.c
+++ b/sysdeps/s390/dl-procinfo.c
@@ -20,6 +20,12 @@
/* The hwcap and platform strings are now in
sysdeps/s390/dl-procinfo-s390.c. */
+/* Dummy entries to preserve ABI. */
+#if defined SHARED && defined PROCINFO_DECL
+const char _dl_s390_cap_flags_unused[23][9];
+const char _dl_s390_platforms_unused[10][7];
+#endif
+
/* Needed by sysdeps/unix/sysv/linux/dl-vdso-setup.c (as included from
sysdeps/generic/ldsodefs.h). */
#undef PROCINFO_DECL