llvm-project/compiler-rt/lib/lsan
Alex Shlyapnikov 7fb4d3d16e [LSan] Export __lsan_init
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
2017-11-15 23:42:48 +00:00
..
.clang-format Tell clang-format that (most) sanitizers are written using Google style guide. 2015-11-19 22:11:10 +00:00
CMakeLists.txt Support compiler-rt builtins 2017-07-28 03:39:38 +00:00
lsan.cc [sanitizers] Rename GetStackTraceWithPcBpAndContext 2017-11-09 07:53:06 +00:00
lsan.h [LSan] Export __lsan_init 2017-11-15 23:42:48 +00:00
lsan_allocator.cc [Sanitizers] ASan/MSan/LSan allocators set errno on failure. 2017-07-18 19:11:04 +00:00
lsan_allocator.h [LSan] Adjust LSan allocator limits for PPC64. 2017-10-26 01:22:48 +00:00
lsan_common.cc [lsan] Remove semicolon after do {} while (0) 2017-11-13 20:59:26 +00:00
lsan_common.h Fix some typos in a comment. 2017-11-15 21:19:20 +00:00
lsan_common_linux.cc [LSan] Detect dynamic loader by its base address. 2017-11-06 21:27:06 +00:00
lsan_common_mac.cc Only scan global sections containing data in LSan on darwin 2017-07-25 18:16:58 +00:00
lsan_flags.inc Implement tls scanning for darwin LSan 2017-05-25 17:41:13 +00:00
lsan_interceptors.cc [lsan] Deadly signal handler for lsan 2017-09-22 22:57:48 +00:00
lsan_linux.cc Implement standalone lsan interceptors for OS X 2017-04-11 20:05:02 +00:00
lsan_mac.cc Add lsan interceptors for libdispatch functions on darwin 2017-06-19 19:21:31 +00:00
lsan_malloc_mac.cc Implement standalone lsan interceptors for OS X 2017-04-11 20:05:02 +00:00
lsan_preinit.cc [Sanitizer] Introduce SANITIZER_CAN_USE_PREINIT_ARRAY definition and use it across sanitizers. 2014-07-25 22:05:02 +00:00
lsan_thread.cc Add lsan interceptors for libdispatch functions on darwin 2017-06-19 19:21:31 +00:00
lsan_thread.h Add lsan interceptors for libdispatch functions on darwin 2017-06-19 19:21:31 +00:00
weak_symbols.txt [lsan] Add __lsan_default_options 2017-09-22 23:49:49 +00:00