[compiler-rt] r302681 - Disable static caching of dyld header on Go sanitizers

Francis Ricci via llvm-commits llvm-commits at lists.llvm.org
Wed May 10 08:40:29 PDT 2017


Author: fjricci
Date: Wed May 10 10:40:29 2017
New Revision: 302681

URL: http://llvm.org/viewvc/llvm-project?rev=302681&view=rev
Log:
Disable static caching of dyld header on Go sanitizers

This causes buildbot failures due to undefined __cxa_guard_acquire

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_mac.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_mac.cc?rev=302681&r1=302680&r2=302681&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_mac.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_mac.cc Wed May 10 10:40:29 2017
@@ -227,8 +227,12 @@ static const struct mach_header *get_dyl
 // and it is expensive to compute once many libraries have been loaded,
 // so cache it here and do not reset.
 static const struct mach_header *get_dyld_hdr() {
+#if !SANITIZER_GO
   static const struct mach_header *header = get_dyld_image_header();
   return header;
+#else
+  return get_dyld_image_header();
+#endif
 }
 
 void MemoryMappingLayout::GetSegmentAddrRange(uptr *start, uptr *end,




More information about the llvm-commits mailing list