diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-01-16 10:19:31 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-01-16 10:19:31 +0000 |
commit | d04b861e69a97c7fc0759a767d581deeead59ac2 (patch) | |
tree | d2267cd0b140fa8850b23414596b74b41e665bc1 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 13665367a0ea3f7c14c6dae3b62052a03e785fae (diff) | |
download | bcm5719-llvm-d04b861e69a97c7fc0759a767d581deeead59ac2.tar.gz bcm5719-llvm-d04b861e69a97c7fc0759a767d581deeead59ac2.zip |
[asan] Remove -fsanitize-address-zero-base-shadow command line
flag from clang, and disable zero-base shadow support on all platforms
where it is not the default behavior.
- It is completely unused, as far as we know.
- It is ABI-incompatible with non-zero-base shadow, which means all
objects in a process must be built with the same setting. Failing to
do so results in a segmentation fault at runtime.
- It introduces a backward dependency of compiler-rt on user code,
which is uncommon and complicates testing.
This is the Clang part of a larger change.
llvm-svn: 199372
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index 23d1edf0779..d6d4f47dd68 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -180,12 +180,10 @@ static void addAddressSanitizerPasses(const PassManagerBuilder &Builder, LangOpts.Sanitize.InitOrder, LangOpts.Sanitize.UseAfterReturn, LangOpts.Sanitize.UseAfterScope, - CGOpts.SanitizerBlacklistFile, - CGOpts.SanitizeAddressZeroBaseShadow)); + CGOpts.SanitizerBlacklistFile)); PM.add(createAddressSanitizerModulePass( LangOpts.Sanitize.InitOrder, - CGOpts.SanitizerBlacklistFile, - CGOpts.SanitizeAddressZeroBaseShadow)); + CGOpts.SanitizerBlacklistFile)); } static void addMemorySanitizerPass(const PassManagerBuilder &Builder, |