[PATCH] [asan] Do not instrument globals from special purpose llvm sections

Alexander Potapenko glider at google.com
Thu Jun 18 10:02:24 PDT 2015


These globals aren't intended to be accessed by the user's code, are they?
LGTM


================
Comment at: lib/Transforms/Instrumentation/AddressSanitizer.cpp:1145
@@ -1144,1 +1144,3 @@
     if (Section == "llvm.metadata") return false;
+    // Do not instrument globals from special llvm sections.
+    if (Section.find("__llvm") != StringRef::npos) return false;
----------------
s/llvm/LLVM ?

http://reviews.llvm.org/D10541

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list