diff options
author | Alex Shlyapnikov <alekseys@google.com> | 2017-05-15 23:11:01 +0000 |
---|---|---|
committer | Vyacheslav Cherkashin <v.cherkashin@samsung.com> | 2019-01-11 16:29:04 +0300 |
commit | eb8a27c4157d7944cccdbdfac4f5f7a295bf2ee2 (patch) | |
tree | da7e3a544d2c77986fafccfcbf2bb2fb9d1093da | |
parent | 693be6f4718f42483155cafbc3e3122cca49141e (diff) | |
download | linaro-gcc-eb8a27c4157d7944cccdbdfac4f5f7a295bf2ee2.tar.gz linaro-gcc-eb8a27c4157d7944cccdbdfac4f5f7a295bf2ee2.tar.bz2 linaro-gcc-eb8a27c4157d7944cccdbdfac4f5f7a295bf2ee2.zip |
[LSan] Report the missing linker only when the linker is actually missing.
Reviewers: eugenis
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D33218
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@303129 91177308-0d34-0410-b5e6-96231b3b80d8
Backport:
http://llvm.org/git/compiler-rt 4ba4036
Change-Id: I1c01e8679206af77fcd971a8fed5b8dde0e42b15
-rw-r--r-- | libsanitizer/lsan/lsan_common_linux.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libsanitizer/lsan/lsan_common_linux.cc b/libsanitizer/lsan/lsan_common_linux.cc index d49c3c033e0..f63b89133af 100644 --- a/libsanitizer/lsan/lsan_common_linux.cc +++ b/libsanitizer/lsan/lsan_common_linux.cc @@ -49,8 +49,10 @@ void InitializePlatformSpecificModules() { return; } } - VReport(1, "LeakSanitizer: Dynamic linker not found. " - "TLS will not be handled correctly.\n"); + if (linker == nullptr) { + VReport(1, "LeakSanitizer: Dynamic linker not found. " + "TLS will not be handled correctly.\n"); + } } static int ProcessGlobalRegionsCallback(struct dl_phdr_info *info, size_t size, |