diff options
author | Yury Gribov <y.gribov@samsung.com> | 2015-06-04 07:23:09 +0000 |
---|---|---|
committer | Yury Gribov <y.gribov@samsung.com> | 2015-06-04 07:23:09 +0000 |
commit | 809f7597e4e3bdbbd6435835027a07e10b205ecc (patch) | |
tree | b771b0319a59bfe30c54a23eef42a780bf44e539 /lib/asan/asan_linux.cc | |
parent | 15dd0b4cce3b650418d9acffbd0f3596c7a94732 (diff) |
[ASan] Move ASan runtime library self-checks to a more appropriate place.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@239018 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_linux.cc')
-rw-r--r-- | lib/asan/asan_linux.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/asan/asan_linux.cc b/lib/asan/asan_linux.cc index f4f187f72..9580fc7c0 100644 --- a/lib/asan/asan_linux.cc +++ b/lib/asan/asan_linux.cc @@ -113,6 +113,9 @@ static void ReportIncompatibleRT() { } void AsanCheckDynamicRTPrereqs() { + if (!ASAN_DYNAMIC) + return; + // Ensure that dynamic RT is the first DSO in the list const char *first_dso_name = 0; dl_iterate_phdr(FindFirstDSOCallback, &first_dso_name); |