From 9b30f142d2bd6e1e85447e38d3a61ba92405b434 Mon Sep 17 00:00:00 2001 From: Marcin Koscielnicki Date: Wed, 27 Apr 2016 21:24:21 +0000 Subject: [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 --- lib/esan/esan_interceptors.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/esan') 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, ...) \ -- cgit v1.2.3