OSDN Git Service

Enable asan/ubsan for mips
authorDuane Sand <duane.1.sand@gmail.com>
Thu, 18 Feb 2016 21:35:12 +0000 (13:35 -0800)
committerDuane Sand <duane.1.sand@gmail.com>
Mon, 29 Feb 2016 23:42:38 +0000 (15:42 -0800)
Change-Id: I1f3c89d6ca08d109e7d2a6d32448ff248a98daac

core/clang/TARGET_mips.mk
core/clang/TARGET_mips64.mk

index 19bbaf2..15c8d37 100644 (file)
@@ -65,3 +65,7 @@ $(clang_2nd_arch_prefix)RS_TRIPLE_CFLAGS :=
 RS_COMPAT_TRIPLE := mipsel-linux-android
 
 $(clang_2nd_arch_prefix)TARGET_LIBPROFILE_RT := $(LLVM_RTLIB_PATH)/libclang_rt.profile-mipsel-android.a
+
+# Address sanitizer clang config
+$(clang_2nd_arch_prefix)ADDRESS_SANITIZER_RUNTIME_LIBRARY := libclang_rt.asan-mips-android
+$(clang_2nd_arch_prefix)ADDRESS_SANITIZER_LINKER := /system/bin/linker_asan
index 104fb70..5ea56ff 100644 (file)
@@ -64,3 +64,7 @@ RS_TRIPLE_CFLAGS :=
 RS_COMPAT_TRIPLE := mips64el-linux-android
 
 TARGET_LIBPROFILE_RT := $(LLVM_RTLIB_PATH)/libclang_rt.profile-mips64el-android.a
+
+# Address sanitizer clang config
+$(clang_2nd_arch_prefix)ADDRESS_SANITIZER_RUNTIME_LIBRARY := libclang_rt.asan-mips64-android
+$(clang_2nd_arch_prefix)ADDRESS_SANITIZER_LINKER := /system/bin/linker_asan64