llvm-project/compiler-rt/lib
Alexey Samsonov 1b64854574 [ASan] Restrict the set of flags overriden at activation.
Summary:
Change the way ASan flag parsing is performed at activation: instead
of overwriting all ASan and common flags from the activation string,
ASan will now only override a handful of whitelisted flags.
This is a first step towards making runtime flags immutable after
initialization. I plan to re-factor the activation stragegy to
the following one:

  - Parse commandline flags. Override the defaults from compile
    definition, env var, etc. Flags are immutable at this point.
  - Initiailize the runtime from commandline flags.
  - If ASan needs to be started deactivated, stash the runtime
    state in "asan_deactivated_flags" and deactivate the runtime.
  - When ASan is activated, override "asan_deactivated_flags" with
    activation flags, and use it to re-activate the runtime.

Test Plan: regression test suite

Reviewers: eugenis, kcc

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D6709

llvm-svn: 224601
2014-12-19 19:16:07 +00:00
..
BlocksRuntime Move tests for BlocksRuntime and builtins to corresponding directories under test/ 2014-02-14 09:47:31 +00:00
asan [ASan] Restrict the set of flags overriden at activation. 2014-12-19 19:16:07 +00:00
builtins builtins: rely on the compiler for user label prefix 2014-12-19 18:54:13 +00:00
dfsan [DFSAN][MIPS] adding support of DFSAN for MIPS64 2014-12-05 21:22:36 +00:00
interception [sanitizer] Android build cleanup. 2014-09-29 13:18:55 +00:00
lsan [sanitizer] Rename InitIfLinkerInitialized to InitLinkerInitialized. 2014-12-19 14:45:19 +00:00
msan [msan] Stop calling pthread_getspecific in signal handlers. 2014-12-17 10:30:06 +00:00
profile profile: Add low level versions of profile buffer functions 2014-12-09 22:07:25 +00:00
sanitizer_common [sanitizer] Rename InitIfLinkerInitialized to InitLinkerInitialized. 2014-12-19 14:45:19 +00:00
tsan tsan: intercept closedir 2014-12-19 14:29:40 +00:00
ubsan Simplify Symbolizer::SymbolizePC() interface. 2014-12-02 19:48:40 +00:00
CMakeLists.txt [msan] Remove MSanDR and supporting code. 2014-11-18 10:33:15 +00:00
Makefile.mk Move original compiler-rt functions (libgcc replacement) to lib/builtins directory 2014-02-14 09:20:33 +00:00