summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2012-08-17 16:27:38 +0000
committerAlexander Potapenko <glider@google.com>2012-08-17 16:27:38 +0000
commitdffbb3b330b5dc1909836a04675eef83ab41b84e (patch)
tree35b312e383cc559fc3b6b1a7075032b1454e29e3
parent546481170cd5c82459ed03ff09577030f7ea20a8 (diff)
downloadbcm5719-llvm-dffbb3b330b5dc1909836a04675eef83ab41b84e.tar.gz
bcm5719-llvm-dffbb3b330b5dc1909836a04675eef83ab41b84e.zip
Intercept siglongjmp and _longjmp under "#if ASAN_INTERCEPT_*"
llvm-svn: 162103
-rw-r--r--compiler-rt/lib/asan/dynamic/asan_interceptors_dynamic.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/dynamic/asan_interceptors_dynamic.cc b/compiler-rt/lib/asan/dynamic/asan_interceptors_dynamic.cc
index af2e206d38f..787446d9a32 100644
--- a/compiler-rt/lib/asan/dynamic/asan_interceptors_dynamic.cc
+++ b/compiler-rt/lib/asan/dynamic/asan_interceptors_dynamic.cc
@@ -47,8 +47,12 @@ const interpose_substitution substitutions[]
INTERPOSE_FUNCTION(strncpy),
INTERPOSE_FUNCTION(pthread_create),
INTERPOSE_FUNCTION(longjmp),
+#if ASAN_INTERCEPT__LONGJMP
INTERPOSE_FUNCTION(_longjmp),
+#endif
+#if ASAN_INTERCEPT_SIGLONGJMP
INTERPOSE_FUNCTION(siglongjmp),
+#endif
#if ASAN_INTERCEPT_STRDUP
INTERPOSE_FUNCTION(strdup),
#endif
OpenPOWER on IntegriCloud