This is an archive of the discontinued LLVM Phabricator instance.

Export __lsan_init
ClosedPublic

Authored by jakubjelinek on Nov 10 2017, 1:32 AM.

Details

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.

Diff Detail

Repository
rL LLVM

Event Timeline

jakubjelinek created this revision.Nov 10 2017, 1:32 AM
alekseyshl accepted this revision.Nov 10 2017, 9:58 AM
This revision is now accepted and ready to land.Nov 10 2017, 9:58 AM

Can you please commit it?

This revision was automatically updated to reflect the committed changes.