[compiler-rt] r262303 - [Compiler-rt][MIPS] Correct Dynamic Thread Vector offset for MIPS
Mohit K. Bhakkad via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 29 21:56:33 PST 2016
Author: mohit.bhakkad
Date: Mon Feb 29 23:56:33 2016
New Revision: 262303
URL: http://llvm.org/viewvc/llvm-project?rev=262303&view=rev
Log:
[Compiler-rt][MIPS] Correct Dynamic Thread Vector offset for MIPS
Reviewers: samsonov
Subscribers: dsanders, jaydeep, sagar, llvm-commits
Differential Revision: http://reviews.llvm.org/D17703
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_tls_get_addr.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_tls_get_addr.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_tls_get_addr.cc?rev=262303&r1=262302&r2=262303&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_tls_get_addr.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_tls_get_addr.cc Mon Feb 29 23:56:33 2016
@@ -78,7 +78,7 @@ void DTLS_Destroy() {
DTLS_Deallocate(dtls.dtv, s);
}
-#if defined(__powerpc64__)
+#if defined(__powerpc64__) || defined(__mips__)
// This is glibc's TLS_DTV_OFFSET:
// "Dynamic thread vector pointers point 0x8000 past the start of each
// TLS block."
More information about the llvm-commits
mailing list