[asan] Improve vDSO check in AsanCheckDynamicRTPrereqs; patch by Yuri Gribov

llvm-svn: 210012
This commit is contained in:
Kostya Serebryany 2014-06-02 10:39:40 +00:00
parent e18ff37e08
commit 5181dd3a56
1 changed files with 4 additions and 0 deletions

View File

@ -91,6 +91,10 @@ static int FindFirstDSOCallback(struct dl_phdr_info *info, size_t size,
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;
}