]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
i386: Also add GLIBC_ABI_GNU2_TLS version [BZ #33129]
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 18 Aug 2025 16:06:48 +0000 (09:06 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 20 Aug 2025 22:11:09 +0000 (15:11 -0700)
Since the GNU2 TLS run-time bug:

https://sourceware.org/bugzilla/show_bug.cgi?id=31372

affects both i386 and x86-64, also add GLIBC_ABI_GNU2_TLS version to i386
to indicate the working GNU2 TLS run-time.  For x86-64, the additional
GNU2 TLS run-time bug fix is needed for

https://sourceware.org/bugzilla/show_bug.cgi?id=31501

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
(cherry picked from commit bd4628f3f18ac312408782eea450429c6f044860)

sysdeps/x86/Makefile
sysdeps/x86/Versions
sysdeps/x86_64/Makefile
sysdeps/x86_64/Versions

index d39c2e896877f0f2943c104c713f74455af79f16..0ab42b14ba640b5e8cae5900856d2629985ff19a 100644 (file)
@@ -125,6 +125,15 @@ LDFLAGS-tst-tls23 += -rdynamic
 tst-tls23-mod.so-no-z-defs = yes
 
 $(objpfx)tst-tls23-mod.so: $(libsupport)
+
+tests-special += $(objpfx)check-gnu2-tls.out
+
+$(objpfx)check-gnu2-tls.out: $(common-objpfx)libc.so
+       LC_ALL=C $(READELF) -V -W $< \
+               | sed -ne '/.gnu.version_d/, /.gnu.version_r/ p' \
+               | grep GLIBC_ABI_GNU2_TLS > $@; \
+       $(evaluate-test)
+generated += check-gnu2-tls.out
 endif
 
 ifeq ($(subdir),math)
index 4b10c4b5d722ecd05fbb639fc915b1f3cfe2b81d..e8dcfccbe4de9bc57d6aeaaeb7f1f3a467b385ed 100644 (file)
@@ -7,4 +7,9 @@ libc {
   GLIBC_2.33 {
     __x86_get_cpuid_feature_leaf;
   }
+  GLIBC_ABI_GNU2_TLS {
+    # This symbol is used only for empty version map and will be removed
+    # by scripts/versions.awk.
+    __placeholder_only_for_empty_version_map;
+  }
 }
index 191cf7f5b058461ad9362b3e9568411f86480b4e..d83109b632b71f4ac3d80bfb3148e1a1092c2b1e 100644 (file)
@@ -180,15 +180,6 @@ $(objpfx)check-dt-x86-64-plt.out: $(common-objpfx)libc.so
                | grep GLIBC_ABI_DT_X86_64_PLT > $@; \
        $(evaluate-test)
 generated += check-dt-x86-64-plt.out
-
-tests-special += $(objpfx)check-gnu2-tls.out
-
-$(objpfx)check-gnu2-tls.out: $(common-objpfx)libc.so
-       LC_ALL=C $(READELF) -V -W $< \
-               | sed -ne '/.gnu.version_d/, /.gnu.version_r/ p' \
-               | grep GLIBC_ABI_GNU2_TLS > $@; \
-       $(evaluate-test)
-generated += check-gnu2-tls.out
 endif # $(subdir) == elf
 
 ifeq ($(subdir),csu)
index 0a759029e5a00cf1b7e485c248235ecbe97b1332..6a989ad3b373cdf65f05dbe1f96d8d898040c96f 100644 (file)
@@ -5,11 +5,6 @@ libc {
   GLIBC_2.13 {
     __fentry__;
   }
-  GLIBC_ABI_GNU2_TLS {
-    # This symbol is used only for empty version map and will be removed
-    # by scripts/versions.awk.
-    __placeholder_only_for_empty_version_map;
-  }
   GLIBC_ABI_DT_X86_64_PLT {
     # This symbol is used only for empty version map and will be removed
     # by scripts/versions.awk.