[PATCH] D53910: [Ubsan] link minimal Ubsan into full Ubsan

Igor Sugak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 30 16:38:27 PDT 2018


sugak created this revision.
sugak added reviewers: eugenis, pcc, kcc.
Herald added subscribers: cryptoad, mgorny, kubamracek.

This enables minimal Ubsan with other sanitizers. It's accomplished by removing restrictions of `-fsanitize-minimal-runtime` and linking minimal Ubsan into full Ubsan and other sanitizers where full Ubsan is used.

As discussed in [1] the motivation here is to reduce the code bloat caused by full UBsan instrumentation and allow reasonable for development diagnostics.

1. http://lists.llvm.org/pipermail/llvm-dev/2018-October/127182.html


https://reviews.llvm.org/D53910

Files:
  clang/lib/Driver/SanitizerArgs.cpp
  clang/test/Driver/fsanitize.c
  compiler-rt/lib/asan/CMakeLists.txt
  compiler-rt/lib/asan/tests/CMakeLists.txt
  compiler-rt/lib/cfi/CMakeLists.txt
  compiler-rt/lib/hwasan/CMakeLists.txt
  compiler-rt/lib/msan/CMakeLists.txt
  compiler-rt/lib/tsan/CMakeLists.txt
  compiler-rt/lib/ubsan/CMakeLists.txt
  compiler-rt/lib/ubsan/ubsan_interface.inc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53910.171832.patch
Type: text/x-patch
Size: 15100 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181030/224838da/attachment.bin>


More information about the llvm-commits mailing list