Merge "Don't pack ASAN executables."

This commit is contained in:
Evgeniy Stepanov
2015-04-28 22:06:29 +00:00
committed by Gerrit Code Review

View File

@@ -87,6 +87,13 @@ ifneq ($(filter address,$(my_sanitize)),)
$(ADDRESS_SANITIZER_CONFIG_EXTRA_SHARED_LIBRARIES)
my_static_libraries += $(ADDRESS_SANITIZER_CONFIG_EXTRA_STATIC_LIBRARIES)
my_ldflags += -Wl,-rpath,$($(LOCAL_2ND_ARCH_VAR_PREFIX)ADDRESS_SANITIZER_RPATH)
# http://b/20665974
# The relocation packer is causing the kernel to load the executable
# overlapping ASAN's shadow space.
ifeq ($(LOCAL_MODULE_CLASS),EXECUTABLES)
LOCAL_PACK_MODULE_RELOCATIONS := false
endif
endif
endif