Page MenuHomePhabricator

Export __lsan_init

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


Summary 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


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.