[PATCH] D40159: Make TLS/NetBSD handling more generic
Joerg Sonnenberger via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 19 07:51:52 PST 2017
joerg added a comment.
The public interface for obtaining the TLS storage is the combination of reading the DTV vector of a thread in combination with dl_iterate_phdr to find the size of the TLS block of a specific module. That gives you all that you need to know. It is important to keep in mind that the vector can be initialized lazily, so __tls_get_addr and friends will have to be intercepted to update the global view.
Repository:
rL LLVM
https://reviews.llvm.org/D40159
More information about the llvm-commits
mailing list