summaryrefslogtreecommitdiff
path: root/libc/Makefile
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2018-01-16 10:43:31 -0800
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2018-01-21 11:48:00 +0000
commit4020e24ba18e66eb8a29a0cf81d599104dfd7aa2 (patch)
treeeed66b46e47c3b04a634322df5eaeb78b71ff004 /libc/Makefile
parentb08d5b5caca499902844099ab6ddf016a7ec8e3d (diff)
xtensa: fix _dl_tlsdesc_dynamic
There are multiple errors in _dl_tlsdesc_dynamic: - the reference C implementation should return pointer to the thread-local variable, not offset from the thread pointer, because the xtensa ABI expects TLSDESC_FN to return pointer to the TLS variable; - addx8 used for indexing into dtv has its second and third registers in wrong order, the index must be multiplied by 8, not the base; - the same addx8 uses wrong base: instead of dtv it adds the offset to the threadptr; - the return value in the fast path is calculated as td->tlsinfo.ti_offset - __builtin_thread_pointer, not what was intended; - both fast and slow paths should not subtract __builtin_thread_pointer from the result. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'libc/Makefile')
0 files changed, 0 insertions, 0 deletions