Merge "build: make: use -Wl,-z,separate-code w/ -Wl,--execute-only"

am: 5c3bf1b164

Change-Id: Iabb1a11d75a243540052cfa973282ae77d747b68
This commit is contained in:
Nick Desaulniers
2019-12-16 13:20:06 -08:00
committed by android-build-merger

View File

@@ -109,7 +109,7 @@ ifneq ($(strip $(ENABLE_XOM)),false)
ifeq ($(strip $(my_xom)),true) ifeq ($(strip $(my_xom)),true)
ifeq (arm64,$(TARGET_$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) ifeq (arm64,$(TARGET_$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH))
ifeq ($(my_use_clang_lld),true) ifeq ($(my_use_clang_lld),true)
my_ldflags += -Wl,-execute-only my_ldflags += -Wl,--execute-only -Wl,-z,separate-code
endif endif
endif endif
endif endif