summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Ricci <francisjricci@gmail.com>2017-05-10 15:40:29 +0000
committerFrancis Ricci <francisjricci@gmail.com>2017-05-10 15:40:29 +0000
commit15dc8c93bcd46065b23e17239e2539e1d6de4383 (patch)
treed1bd670b53a0570bf1ddad022460cf24d7dd7249
parent61efa174d7f7bd21a7f260921977f2eabb1a78c5 (diff)
downloadbcm5719-llvm-15dc8c93bcd46065b23e17239e2539e1d6de4383.tar.gz
bcm5719-llvm-15dc8c93bcd46065b23e17239e2539e1d6de4383.zip
Disable static caching of dyld header on Go sanitizers
This causes buildbot failures due to undefined __cxa_guard_acquire llvm-svn: 302681
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc
index edb14c304aa..0b2193ae780 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc
@@ -227,8 +227,12 @@ static const struct mach_header *get_dyld_image_header() {
// 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,
OpenPOWER on IntegriCloud