Add support for LLVM_USE_SANITIZER = SafeStack

Valérian Rousset via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 5 02:20:38 PDT 2015


Hello all,

Here is a trivial patch to allow LLVM to be build with SafeStack, via
LLVM_USE_SANITIZER=SafeStack. 

It does compile without issue, but some tests fail, mainly due to profiling with
instrumentation.
It fails with `undefined reference to `__safestack_unsafe_stack_ptr'` because it
has to link with the SafeStack runtime but it wasn't build. What is the best way
to do this? Mark the tests as unsupported or did I missed something?

Have a nice day.
-- 
tharvik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libcxx-sanitizer-safestack.patch
Type: text/x-diff
Size: 804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151005/c6958324/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-sanitizer-safestack.patch
Type: text/x-diff
Size: 716 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151005/c6958324/attachment-0001.patch>


More information about the llvm-commits mailing list