This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
Community source repository for glibc add-on ports branch release/2.16/master updated. glibc-2.16.0-3-gab1a463
- From: cmetcalf at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 29 Nov 2012 21:38:59 -0000
- Subject: Community source repository for glibc add-on ports branch release/2.16/master updated. glibc-2.16.0-3-gab1a463
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Community source repository for glibc add-on ports".
The branch, release/2.16/master has been updated
via ab1a4637ef123e2960c075d5f60e5e6cdbbee286 (commit)
from eea91310560b8ee37ddcb78e6ebcab5ff00751fa (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc-ports.git;a=commitdiff;h=ab1a4637ef123e2960c075d5f60e5e6cdbbee286
commit ab1a4637ef123e2960c075d5f60e5e6cdbbee286
Author: Chris Metcalf <cmetcalf@tilera.com>
Date: Thu Nov 29 12:57:04 2012 -0500
tile: BZ#14237: fix __tls_get_addr bug initializing new modules
We were missing a check for TLS_DTV_UNALLOCATED; if set, we need
to go to the slow path.
Cherry-pick glibc commit: 053406fa70d071423c43465d60042d84c24f94cf
diff --git a/ChangeLog.tile b/ChangeLog.tile
index cc4ab0e..c107be2 100644
--- a/ChangeLog.tile
+++ b/ChangeLog.tile
@@ -1,3 +1,7 @@
+2012-11-29 Chris Metcalf <cmetcalf@tilera.com>
+
+ * sysdeps/tile/__tls_get_addr.S: Fix TLS module initialization bug.
+
2012-09-06 Chris Metcalf <cmetcalf@tilera.com>
* sysdeps/unix/sysv/linux/tile/sys/procfs.h: Fix type of prfpregset_t.
diff --git a/sysdeps/tile/__tls_get_addr.S b/sysdeps/tile/__tls_get_addr.S
index 74e4fa2..6de79ba 100644
--- a/sysdeps/tile/__tls_get_addr.S
+++ b/sysdeps/tile/__tls_get_addr.S
@@ -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
-----------------------------------------------------------------------
Summary of changes:
ChangeLog.tile | 4 ++++
sysdeps/tile/__tls_get_addr.S | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
hooks/post-receive
--
Community source repository for glibc add-on ports