summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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