[PATCH] D24454: [lsan] [aarch64] Fix calculating TLS area
Strahinja Petrovic via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 28 03:24:06 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL282571: [lsan] [aarch64] Fix calculating TLS area (authored by spetrovic).
Changed prior to commit:
https://reviews.llvm.org/D24454?vs=71000&id=72789#toc
Repository:
rL LLVM
https://reviews.llvm.org/D24454
Files:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc
Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc
@@ -298,7 +298,10 @@
rdhwr %0,$29;\
.set pop" : "=r" (thread_pointer));
descr_addr = thread_pointer - kTlsTcbOffset - TlsPreTcbSize();
-# elif defined(__aarch64__) || defined(__s390__)
+# elif defined(__aarch64__)
+ descr_addr = reinterpret_cast<uptr>(__builtin_thread_pointer()) -
+ ThreadDescriptorSize();
+# elif defined(__s390__)
descr_addr = reinterpret_cast<uptr>(__builtin_thread_pointer());
# elif defined(__powerpc64__)
// PPC64LE uses TLS variant I. The thread pointer (in GPR 13)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24454.72789.patch
Type: text/x-patch
Size: 854 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160928/488676f5/attachment.bin>
More information about the llvm-commits
mailing list