This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
TLS static info and _dl_get_tls_static_info()
- From: Dmitry Vyukov <dvyukov at google dot com>
- To: libc-alpha at sourceware dot org
- Cc: Jakub Jelinek <jakub at redhat dot com>, Dodji Seketeli <dseketel at redhat dot com>, Kostya Serebryany <kcc at google dot com>
- Date: Mon, 24 Dec 2012 17:43:44 +0400
- Subject: TLS static info and _dl_get_tls_static_info()
Hi,
I am working on ThreadSanitizer, a data race detector for C/C++
(http://clang.llvm.org/docs/ThreadSanitizer.html).
In the runtime library I need to obtain info about thread local
storage. Currently I use _dl_get_tls_static_info() function for that.
It's a glibc private function, so this is bad.
Is there another better way to obtain tls size or address for particular thread?
TIA