]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - ports/sysdeps/tile/__tls_get_addr.S
tile: BZ#14237: fix __tls_get_addr bug initializing new modules
[thirdparty/glibc.git] / ports / sysdeps / tile / __tls_get_addr.S
index 74e4fa2c2635c1971ce03e6fea34821d24c637af..6de79ba53dba27c0ec75040317a1db4f53cba674 100644 (file)
@@ -76,6 +76,8 @@ ENTRY (__tls_get_addr)
         ADD_PTR r28, r28, r27  /* pointer into module array */
        }
        LD_PTR r26, r28         /* r26 = module TLS pointer */
+       CMPEQI r25, r26, -1     /* check r26 == TLS_DTV_UNALLOCATED */
+       BNEZ r25, .Lslowpath
        {
         ADD_PTR r0, r26, r29
         jrp lr