[PATCH] D33218: [lsan] Report the missing linker only when the linker is actually missing.

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 15 15:47:54 PDT 2017


alekseyshl created this revision.

https://reviews.llvm.org/D33218

Files:
  lib/lsan/lsan_common_linux.cc


Index: lib/lsan/lsan_common_linux.cc
===================================================================
--- lib/lsan/lsan_common_linux.cc
+++ lib/lsan/lsan_common_linux.cc
@@ -62,8 +62,10 @@
       return;
     }
   }
-  VReport(1, "LeakSanitizer: Dynamic linker not found. "
-             "TLS will not be handled correctly.\n");
+  if (linker == nullptr) {
+    VReport(1, "LeakSanitizer: Dynamic linker not found. "
+               "TLS will not be handled correctly.\n");
+  }
 }
 
 static int ProcessGlobalRegionsCallback(struct dl_phdr_info *info, size_t size,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33218.99072.patch
Type: text/x-patch
Size: 568 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170515/23aaa004/attachment.bin>


More information about the llvm-commits mailing list