diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-12-20 12:20:15 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-12-20 12:20:15 +0000 |
commit | 66297cac72215a912be684584fc77660fbeba6e0 (patch) | |
tree | 8fb13be4344daee96d6f4a0c8c7ca69cbb24f828 /compiler-rt/lib/interception | |
parent | 92669ee45cc4337d2871eac16eb07b2fe8372373 (diff) | |
download | bcm5719-llvm-66297cac72215a912be684584fc77660fbeba6e0.tar.gz bcm5719-llvm-66297cac72215a912be684584fc77660fbeba6e0.zip |
[msan] Wrap indirect calls to REAL(x) in interceptors.
llvm-svn: 197806
Diffstat (limited to 'compiler-rt/lib/interception')
-rw-r--r-- | compiler-rt/lib/interception/interception_linux.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler-rt/lib/interception/interception_linux.h b/compiler-rt/lib/interception/interception_linux.h index cea957320d0..847e622bdcc 100644 --- a/compiler-rt/lib/interception/interception_linux.h +++ b/compiler-rt/lib/interception/interception_linux.h @@ -28,11 +28,11 @@ bool GetRealFunctionAddress(const char *func_name, uptr *func_addr, void *GetFuncAddrVer(const char *func_name, const char *ver); } // namespace __interception -#define INTERCEPT_FUNCTION_LINUX(func) \ - ::__interception::GetRealFunctionAddress( \ - #func, (::__interception::uptr*)&REAL(func), \ - (::__interception::uptr)&(func), \ - (::__interception::uptr)&WRAP(func)) +#define INTERCEPT_FUNCTION_LINUX(func) \ + ::__interception::GetRealFunctionAddress( \ + #func, (::__interception::uptr *)&__interception::PTR_TO_REAL(func), \ + (::__interception::uptr) & (func), \ + (::__interception::uptr) & WRAP(func)) #if !defined(__ANDROID__) // android does not have dlvsym # define INTERCEPT_FUNCTION_VER_LINUX(func, symver) \ |