OSDN Git Service

test/tls: xtensa: fix TLS_LD definition
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 3 Jul 2015 16:51:25 +0000 (19:51 +0300)
committerWaldemar Brodkorb <wbx@openadk.org>
Fri, 3 Jul 2015 22:39:31 +0000 (17:39 -0500)
commitedc70f33715ae0183febd8195b4a1b91b9db19cc
treee8b6a78cdb1e81e16a91d6c99ebd564d50a36d4c
parent6da5676cbe02149ef64197927b8b2fbec6055fc9
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@gmail.com>
test/tls/tls-macros.h