test/tls: xtensa: fix TLS_LD definition
commit49700fa92a3727e0248fc7c23f6df8486707deb1
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 3 Jul 2015 16:51:25 +0000 (3 19:51 +0300)
committerWaldemar Brodkorb <wbx@openadk.org>
Fri, 3 Jul 2015 23:31:20 +0000 (3 18:31 -0500)
treee61ecc01d6a94b3e5e41e193c53ab485b2944c50
parent7d303841dbb6e668e5acdd9218ce82231a00a967
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