diff options
author | Alex Shlyapnikov <alekseys@google.com> | 2017-11-15 23:42:48 +0000 |
---|---|---|
committer | Alex Shlyapnikov <alekseys@google.com> | 2017-11-15 23:42:48 +0000 |
commit | 7fb4d3d16e5f21c8a50a87d9a8f31da36fcdfa91 (patch) | |
tree | c83dacfac283d5f26e5d02b8c7ca87d61ec46380 /llvm/lib/CodeGen | |
parent | c12c0c5467cb2d0663111ede7307033bab5b4078 (diff) | |
download | bcm5719-llvm-7fb4d3d16e5f21c8a50a87d9a8f31da36fcdfa91.tar.gz bcm5719-llvm-7fb4d3d16e5f21c8a50a87d9a8f31da36fcdfa91.zip |
[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
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions