[compiler-rt] r355165 - [hwasan] Disable vfork code when building w/o interceptors.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 28 18:06:58 PST 2019
Author: eugenis
Date: Thu Feb 28 18:06:58 2019
New Revision: 355165
URL: http://llvm.org/viewvc/llvm-project?rev=355165&view=rev
Log:
[hwasan] Disable vfork code when building w/o interceptors.
Don't define vfork when OMPILER_RT_HWASAN_WITH_INTERCEPTORS=OFF.
Modified:
compiler-rt/trunk/lib/hwasan/hwasan_interceptors_vfork.S
Modified: compiler-rt/trunk/lib/hwasan/hwasan_interceptors_vfork.S
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/hwasan/hwasan_interceptors_vfork.S?rev=355165&r1=355164&r2=355165&view=diff
==============================================================================
--- compiler-rt/trunk/lib/hwasan/hwasan_interceptors_vfork.S (original)
+++ compiler-rt/trunk/lib/hwasan/hwasan_interceptors_vfork.S Thu Feb 28 18:06:58 2019
@@ -1,6 +1,6 @@
#include "sanitizer_common/sanitizer_asm.h"
-#if defined(__linux__)
+#if defined(__linux__) && HWASAN_WITH_INTERCEPTORS
#define COMMON_INTERCEPTOR_SPILL_AREA __hwasan_extra_spill_area
#define COMMON_INTERCEPTOR_HANDLE_VFORK __hwasan_handle_vfork
#include "sanitizer_common/sanitizer_common_interceptors_vfork_aarch64.inc.S"
More information about the llvm-commits
mailing list