[PATCH] D15049: [asan] Skip all non-shared objects in FindFirstDSOCallback.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 4 15:48:39 PST 2015
eugenis added inline comments.
================
Comment at: lib/asan/asan_linux.cc:100
@@ +99,3 @@
+ // not a PT_LOAD type.
+ if (info->dlpi_phdr->p_type != PT_LOAD)
+ return 0;
----------------
You are looking at the first segment type. In libc on linux it happens to be PT_PHDR for some reason, and PT_LOAD's are the 3rd and the 4th. You should probably iterate.
http://reviews.llvm.org/D15049
More information about the llvm-commits
mailing list