[clang] Thread-local variables are not supported
clang require @tls_get_addr@ to be implemented on low level (libc) to support @thread@ variables. Bionic doesn't provide it. GCC workaround it by using emulated TLS feature in libgcc. Clang don't support it yet, but "here":https://llvm.org/bugs/show_bug.cgi?id=23566 is corresponding ticket, with patches suggested.
#3 Updated by Dmitry Moskalchuk over 3 years ago
- Category set to toolchain
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
Fixed by backporting support of emulated TLS from clang-3.8 (not yet released) to clang-3.7. It's much more difficult to backport it to clang-3.6 due to significant difference in code base between versions, so clang-3.6 will not receive this fix.