diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-11-14 12:29:04 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-11-14 12:29:04 +0000 |
commit | 585813e33dda3dc396e12a01ffc3e47fc39895e9 (patch) | |
tree | 3a63dc779e3d6a5a85dc37c039139d229c6999de /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 003c4bfc42fa522a12266e0a39719a9d75d175c9 (diff) | |
download | llvm-585813e33dda3dc396e12a01ffc3e47fc39895e9.zip llvm-585813e33dda3dc396e12a01ffc3e47fc39895e9.tar.gz llvm-585813e33dda3dc396e12a01ffc3e47fc39895e9.tar.bz2 |
[msan] Fast path optimization for wrap-indirect-calls feature of MemorySanitizer.
Indirect call wrapping helps MSanDR (dynamic instrumentation companion tool
for MSan) to catch all cases where execution leaves a compiler-instrumented
module by allowing the tool to rewrite targets of indirect calls.
This change is an optimization that skips wrapping for calls when target is
inside the current module. This relies on the linker providing symbols at the
begin and end of the module code (or code + data, does not really matter).
Gold linker provides such symbols by default. GNU (BFD) linker needs a link
flag: -Wl,--defsym=__executable_start=0.
More info:
https://code.google.com/p/memory-sanitizer/wiki/MSanDR#Native_exec
llvm-svn: 194697
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions