summaryrefslogtreecommitdiff
path: root/lib/interception/interception.h
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2014-05-22 12:03:40 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2014-05-22 12:03:40 +0000
commitdfc7fe5c1e0bfabbb1b6b189b3154b107a3ff7ca (patch)
tree4f7475e1d68c6e61dcb83e5785459ce03c546488 /lib/interception/interception.h
parenta2c2cdb9667c555cfa70084b770bcd284f5f9b3e (diff)
[ASan/Win] Use the new function interception approach to handle function wrappers too; wrap strlen() in DLLs
Reviewed at http://reviews.llvm.org/D3871 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209427 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/interception/interception.h')
-rw-r--r--lib/interception/interception.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/interception/interception.h b/lib/interception/interception.h
index 7b6b6475e..ac982f71d 100644
--- a/lib/interception/interception.h
+++ b/lib/interception/interception.h
@@ -127,9 +127,9 @@ const interpose_substitution substitution_##func_name[] \
# define WRAPPER_NAME(x) #x
# define INTERCEPTOR_ATTRIBUTE
# else // Static CRT
-# define WRAP(x) wrap_##x
-# define WRAPPER_NAME(x) "wrap_"#x
-# define INTERCEPTOR_ATTRIBUTE
+# define WRAP(x) __asan_wrap_##x
+# define WRAPPER_NAME(x) "__asan_wrap_"#x
+# define INTERCEPTOR_ATTRIBUTE __declspec(dllexport)
# endif
# define DECLARE_WRAPPER(ret_type, func, ...) \
extern "C" ret_type func(__VA_ARGS__);