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 "uClibc-ng - small C library for embedded systems".
The branch, master has been updated
via edc70f33715ae0183febd8195b4a1b91b9db19cc (commit)
from 6da5676cbe02149ef64197927b8b2fbec6055fc9 (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 -----------------------------------------------------------------
commit edc70f33715ae0183febd8195b4a1b91b9db19cc
Author: Max Filippov <jcmvbkbc(a)gmail.com>
Date: Fri Jul 3 19:51:25 2015 +0300
test/tls: xtensa: fix TLS_LD definition
TLS_LD should use linker-provided symbol _TLS_MODULE_BASE_ instead of
symbol it resolves to get thread pointer, otherwise linker relaxation
doesn't work correctly, adding extra offset to thread-local variable
address.
This fixes most of tls/tst-tls* tests.
Signed-off-by: Max Filippov <jcmvbkbc(a)gmail.com>
-----------------------------------------------------------------------
Summary of changes:
test/tls/tls-macros.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/tls/tls-macros.h b/test/tls/tls-macros.h
index a41aef6..7d89274 100644
--- a/test/tls/tls-macros.h
+++ b/test/tls/tls-macros.h
@@ -900,9 +900,9 @@ register void *__gp __asm__("$29");
#define TLS_LD(x) \
({ int *__l; \
- __asm__ ("movi a8, " #x "@TLSFUNC\n\t" \
- "movi a10, " #x "@TLSARG\n\t" \
- "callx8.tls a8, " #x "@TLSCALL\n\t" \
+ __asm__ ("movi a8, _TLS_MODULE_BASE_@TLSFUNC\n\t" \
+ "movi a10, _TLS_MODULE_BASE_@TLSARG\n\t" \
+ "callx8.tls a8, _TLS_MODULE_BASE_@TLSCALL\n\t" \
"movi %0, " #x "@TPOFF\n\t" \
"add %0, %0, a10\n\t" \
: "=r" (__l) \
hooks/post-receive
--
uClibc-ng - small C library for embedded systems
Show replies by date