diff options
| author | Kostya Serebryany <kcc@google.com> | 2014-01-29 09:29:16 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2014-01-29 09:29:16 +0000 |
| commit | 71788fac2aef064fd3f2ca5401dc59b84717b127 (patch) | |
| tree | 343942d5eb56f22e12d1815c93fe2f0a798fc8cb /compiler-rt/lib/asan/asan_thread.cc | |
| parent | ad5c1734e2b40fe638b23412b9020efcf5762613 (diff) | |
| download | bcm5719-llvm-71788fac2aef064fd3f2ca5401dc59b84717b127.tar.gz bcm5719-llvm-71788fac2aef064fd3f2ca5401dc59b84717b127.zip | |
[asan] experimental intercetor for __tls_get_addr. So far it does nothing interesting, actual usage will come later. See https://groups.google.com/forum/#!topic/address-sanitizer/BfwYD8HMxTM for background
llvm-svn: 200384
Diffstat (limited to 'compiler-rt/lib/asan/asan_thread.cc')
| -rw-r--r-- | compiler-rt/lib/asan/asan_thread.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/asan_thread.cc b/compiler-rt/lib/asan/asan_thread.cc index 7aa4ede5a1f..897ff2e6c1a 100644 --- a/compiler-rt/lib/asan/asan_thread.cc +++ b/compiler-rt/lib/asan/asan_thread.cc @@ -20,6 +20,7 @@ #include "sanitizer_common/sanitizer_common.h" #include "sanitizer_common/sanitizer_placement_new.h" #include "sanitizer_common/sanitizer_stackdepot.h" +#include "sanitizer_common/sanitizer_tls_get_addr.h" #include "lsan/lsan_common.h" namespace __asan { @@ -107,6 +108,7 @@ void AsanThread::Destroy() { DeleteFakeStack(tid); uptr size = RoundUpTo(sizeof(AsanThread), GetPageSizeCached()); UnmapOrDie(this, size); + DTLS_Destroy(); } // We want to create the FakeStack lazyly on the first use, but not eralier |

