From 08cca28f9215a840274a1b093b93bff8aaa6f33a Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 11 Dec 2014 18:56:26 -0800 Subject: Add support for ubsan. Rather than adding LOCAL_UB_SANITIZER, LOCAL_THREAD_SANITIZER, etc for each new sanitizer, deprecate LOCAL_ADDRESS_SANITIZER in favor of LOCAL_SANITZE that mirrors the behavior of -fsanitize=. For example, the following will use both asan and ubsan: LOCAL_SANITIZE := address undefined We'll leave LOCAL_ADDRESS_SANITIZER around for compatibility until we can clean up the tree. Change-Id: I8a62315129d4753f8e992584ca6db1e5dfdd4d2a --- core/clang/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/clang/config.mk') diff --git a/core/clang/config.mk b/core/clang/config.mk index 13a5ba1..bdcfe60 100644 --- a/core/clang/config.mk +++ b/core/clang/config.mk @@ -115,7 +115,7 @@ endif # Address sanitizer clang config ADDRESS_SANITIZER_RUNTIME_LIBRARY := libclang_rt.asan_$(TARGET_ARCH)_android -ADDRESS_SANITIZER_CONFIG_EXTRA_CFLAGS := -fsanitize=address -fno-omit-frame-pointer +ADDRESS_SANITIZER_CONFIG_EXTRA_CFLAGS := -fno-omit-frame-pointer ADDRESS_SANITIZER_CONFIG_EXTRA_LDFLAGS := -Wl,-u,__asan_preinit ADDRESS_SANITIZER_CONFIG_EXTRA_SHARED_LIBRARIES := libdl $(ADDRESS_SANITIZER_RUNTIME_LIBRARY) -- cgit v1.1