This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Add a shared runtime
ClosedPublic

Authored by cryptoad on Oct 16 2017, 3:39 PM.

Details

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.

Event Timeline

cryptoad created this revision.Oct 16 2017, 3:39 PM
alekseyshl accepted this revision.Oct 20 2017, 11:40 AM
alekseyshl added inline comments.
lib/scudo/CMakeLists.txt
38

Shouldn't this new block go under if(COMPILER_RT_HAS_SCUDO)?

This revision is now accepted and ready to land.Oct 20 2017, 11:40 AM
cryptoad updated this revision to Diff 119865.Oct 23 2017, 9:14 AM

Move SCUDO_DYNAMIC_LIBS under if(COMPILER_RT_HAS_SCUDO).

cryptoad marked an inline comment as done.Oct 23 2017, 9:14 AM
cryptoad closed this revision.Oct 23 2017, 9:28 AM