[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 22:01:15 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL262303: [Compiler-rt][MIPS] Correct Dynamic Thread Vector offset for MIPS (authored by mohit.bhakkad).

Changed prior to commit:
  http://reviews.llvm.org/D17703?vs=49342&id=49452#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D17703

Files:
  compiler-rt/trunk/lib/sanitizer_common/sanitizer_tls_get_addr.cc

Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_tls_get_addr.cc
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_tls_get_addr.cc
+++ compiler-rt/trunk/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.49452.patch
Type: text/x-patch
Size: 536 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160301/f386b063/attachment.bin>


More information about the llvm-commits mailing list