[PATCH] Optional support for dynamic Asan runtime

Yury Gribov tetra2005 at gmail.com
Fri Mar 28 23:47:20 PDT 2014



================
Comment at: lib/asan/asan_linux.cc:82
@@ +81,3 @@
+  const char *first_dso_name = 0;
+  dl_iterate_phdr(FindFirstDSOCallback, &first_dso_name);
+  if (first_dso_name && !internal_strstr(first_dso_name, "libclang_rt.asan") &&
----------------
Yury Gribov wrote:
> I could probably also use DumpListOfModules here. What's your opinion?
Although the order of modules in address space does not necessarily match the order in which they were loaded by ld.so. Dl_iterate_phdr is probably more reliable...


http://llvm-reviews.chandlerc.com/D3042



More information about the llvm-commits mailing list