forked from OSchip/llvm-project
7fb4d3d16e
Summary: lsan_preinit.cc is meant to be linked into executable and calls lsan_init from .preinit_array section. But if liblsan is a shared library, then this doesn't work, because the symbol is not exported. This patch fixes that. The counterparts like asan_init or __tsan_init already do have SANITIZER_INTERFACE_ATTRIBUTE. Committing on behalf of jakubjelinek. Reviewers: alekseyshl, kcc Subscribers: llvm-commits Differential revision: https://reviews.llvm.org/D39889 llvm-svn: 318349 |
||
---|---|---|
.. | ||
.clang-format | ||
CMakeLists.txt | ||
lsan.cc | ||
lsan.h | ||
lsan_allocator.cc | ||
lsan_allocator.h | ||
lsan_common.cc | ||
lsan_common.h | ||
lsan_common_linux.cc | ||
lsan_common_mac.cc | ||
lsan_flags.inc | ||
lsan_interceptors.cc | ||
lsan_linux.cc | ||
lsan_mac.cc | ||
lsan_malloc_mac.cc | ||
lsan_preinit.cc | ||
lsan_thread.cc | ||
lsan_thread.h | ||
weak_symbols.txt |