diff options
author | Marcin Koscielnicki <koriakin@0x04.net> | 2016-04-27 21:24:21 +0000 |
---|---|---|
committer | Marcin Koscielnicki <koriakin@0x04.net> | 2016-04-27 21:24:21 +0000 |
commit | 9b30f142d2bd6e1e85447e38d3a61ba92405b434 (patch) | |
tree | 2a8521b172300ae32828648f0008a79dd2137fbe /lib/esan/esan_interceptors.cpp | |
parent | c97c82cc2895d3ac599c2fe3c09ba3950de33b4f (diff) |
[sanitizers] Get the proper symbol version when long double transition is involved.
On linux, some architectures had an ABI transition from 64-bit long double
(ie. same as double) to 128-bit long double. On those, glibc symbols
involving long doubles come in two versions, and we need to pass the
correct one to dlvsym when intercepting them.
A few more functions we intercept are also versioned (all printf, scanf,
strtold variants), but there's no need to fix these, as the REAL() versions
are never called.
Differential Revision: http://reviews.llvm.org/D19555
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@267794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/esan/esan_interceptors.cpp')
-rw-r--r-- | lib/esan/esan_interceptors.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/esan/esan_interceptors.cpp b/lib/esan/esan_interceptors.cpp index 6c535c5b2..97d5b6217 100644 --- a/lib/esan/esan_interceptors.cpp +++ b/lib/esan/esan_interceptors.cpp @@ -43,6 +43,8 @@ using namespace __esan; // NOLINT #define COMMON_INTERCEPTOR_NOTHING_IS_INITIALIZED (!EsanIsInitialized) #define COMMON_INTERCEPT_FUNCTION(name) INTERCEPT_FUNCTION(name) +#define COMMON_INTERCEPT_FUNCTION_VER(name, ver) \ + INTERCEPT_FUNCTION_VER(name, ver) // We currently do not use ctx. #define COMMON_INTERCEPTOR_ENTER(ctx, func, ...) \ |