With SANITIZE_TARGET, move shared libraries to /data.
A fully (or even mostly) asan-instrumented device will have 2 copies of each shared library, which might not fit on system partition. Moving instrumented libraries to /data. Bug: 21785137 Change-Id: I64184261da2eb24a1382c67e4931c34a5a38b3c0
This commit is contained in:
@@ -69,4 +69,4 @@ $(clang_2nd_arch_prefix)TARGET_LIBPROFILE_RT := $(LLVM_RTLIB_PATH)/libclang_rt.p
|
||||
|
||||
# Address sanitizer clang config
|
||||
$(clang_2nd_arch_prefix)ADDRESS_SANITIZER_RUNTIME_LIBRARY := libclang_rt.asan-arm-android
|
||||
$(clang_2nd_arch_prefix)ADDRESS_SANITIZER_RPATH := /system/lib/asan
|
||||
$(clang_2nd_arch_prefix)ADDRESS_SANITIZER_RPATH := /data/lib
|
||||
|
@@ -67,4 +67,4 @@ TARGET_LIBPROFILE_RT := $(LLVM_RTLIB_PATH)/libclang_rt.profile-aarch64-android.a
|
||||
|
||||
# Address sanitizer clang config
|
||||
ADDRESS_SANITIZER_RUNTIME_LIBRARY := libclang_rt.asan-arm64-android
|
||||
ADDRESS_SANITIZER_RPATH := /system/lib64/asan
|
||||
ADDRESS_SANITIZER_RPATH := /data/lib64
|
||||
|
Reference in New Issue
Block a user