[scudo] Add a shared runtime
authorKostya Kortchinsky <kostyak@google.com>
Mon, 23 Oct 2017 16:27:47 +0000 (16:27 +0000)
committerKostya Kortchinsky <kostyak@google.com>
Mon, 23 Oct 2017 16:27:47 +0000 (16:27 +0000)
commit9e917a13fb2a3a0f7c54bd443971cac4f6cc9638
treebc5e106970858cab5d993bca1bad15dd431c4b4f
parent1934fd2c535eb8f5c9d28cfc07879c2d7e4c0a1e
[scudo] Add a shared runtime

Summary:
Up to now, the Scudo cmake target only provided a static library that had to be
linked to an executable to benefit from the hardened allocator.
This introduces a shared library as well, that can be LD_PRELOAD'ed.

Reviewers: alekseyshl

Reviewed By: alekseyshl

Subscribers: srhines, mgorny, llvm-commits

Differential Revision: https://reviews.llvm.org/D38980

llvm-svn: 316342
compiler-rt/lib/scudo/CMakeLists.txt
compiler-rt/test/scudo/lit.cfg
compiler-rt/test/scudo/preload.cpp [new file with mode: 0644]