[compiler-rt] r210012 - [asan] Improve vDSO check in AsanCheckDynamicRTPrereqs; patch by Yuri Gribov
Kostya Serebryany
kcc at google.com
Mon Jun 2 03:39:41 PDT 2014
Author: kcc
Date: Mon Jun 2 05:39:40 2014
New Revision: 210012
URL: http://llvm.org/viewvc/llvm-project?rev=210012&view=rev
Log:
[asan] Improve vDSO check in AsanCheckDynamicRTPrereqs; patch by Yuri Gribov
Modified:
compiler-rt/trunk/lib/asan/asan_linux.cc
Modified: compiler-rt/trunk/lib/asan/asan_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_linux.cc?rev=210012&r1=210011&r2=210012&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_linux.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_linux.cc Mon Jun 2 05:39:40 2014
@@ -91,6 +91,10 @@ static int FindFirstDSOCallback(struct d
if (!info->dlpi_name || info->dlpi_name[0] == 0)
return 0;
+ // Ignore vDSO
+ if (internal_strncmp(info->dlpi_name, "linux-", sizeof("linux-") - 1) == 0)
+ return 0;
+
*(const char **)data = info->dlpi_name;
return 1;
}
More information about the llvm-commits
mailing list