[PATCH] D17703: [Compiler-rt][MIPS] Correct Dynamic Thread Vector offset for MIPS
Mohit Bhakkad via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 29 00:15:50 PST 2016
mohit.bhakkad created this revision.
mohit.bhakkad added reviewers: eugenis, samsonov, kcc.
mohit.bhakkad added subscribers: llvm-commits, jaydeep, sagar.
mohit.bhakkad set the repository for this revision to rL LLVM.
Repository:
rL LLVM
http://reviews.llvm.org/D17703
Files:
lib/sanitizer_common/sanitizer_tls_get_addr.cc
Index: lib/sanitizer_common/sanitizer_tls_get_addr.cc
===================================================================
--- lib/sanitizer_common/sanitizer_tls_get_addr.cc
+++ lib/sanitizer_common/sanitizer_tls_get_addr.cc
@@ -78,7 +78,7 @@
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."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17703.49342.patch
Type: text/x-patch
Size: 482 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160229/811df87f/attachment.bin>
More information about the llvm-commits
mailing list