]> granicus.if.org Git - clang/commit
[Driver] Make scudo compatible with -fsanitize-minimal-runtime
authorKostya Kortchinsky <kostyak@google.com>
Fri, 22 Jun 2018 14:31:30 +0000 (14:31 +0000)
committerKostya Kortchinsky <kostyak@google.com>
Fri, 22 Jun 2018 14:31:30 +0000 (14:31 +0000)
commit0b8a6fded3d3ff541e9553a623666553bbb095de
treee039f24b8249c3c11932cd39fb82365a44731561
parent84dae0555379696bff8fe6472ba402223ef04608
[Driver] Make scudo compatible with -fsanitize-minimal-runtime

Summary:
This is the clang side of the change, there is a compiler-rt counterpart.

Scudo works with UBSan using `-fsanitize=scudo,integer` for example, and to do
so it embeds UBSan runtime. This makes it not compatible with the UBSan minimal
runtime, but this is something we want for production purposes.

The idea is to have a Scudo minimal runtime on the compiler-rt side that will
not embed UBSan. This is basically the runtime that is currently in use for
Fuchsia, without coverage, stacktraces or symbolization. With this, Scudo
becomes compatible with `-fsanitize-minimal-runtime`.

If this approach is suitable, I'll add the tests as well, otherwise I am open
to other options.

Reviewers: eugenis

Reviewed By: eugenis

Subscribers: llvm-commits, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335352 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/SanitizerArgs.cpp
lib/Driver/ToolChains/CommonArgs.cpp
test/Driver/fsanitize.c
test/Driver/sanitizer-ld.c