summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cc
diff options
context:
space:
mode:
authorMohit K. Bhakkad <mohit.bhakkad@gmail.com>2016-03-01 05:56:33 +0000
committerMohit K. Bhakkad <mohit.bhakkad@gmail.com>2016-03-01 05:56:33 +0000
commit1d1493219c3de5befde52930c3bbb0143eecda26 (patch)
tree5fccdb5ac117aef67bfb89a5ff71c10dbd45763e /compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cc
parent94aa4d7e832b819afe18c70a4ac3c6ae53b8c1af (diff)
downloadbcm5719-llvm-1d1493219c3de5befde52930c3bbb0143eecda26.tar.gz
bcm5719-llvm-1d1493219c3de5befde52930c3bbb0143eecda26.zip
[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 llvm-svn: 262303
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cc')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cc b/compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cc
index 213aced89da..77c1947d52d 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cc
@@ -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."
OpenPOWER on IntegriCloud