From 9882f6f7be9229e8c9ef275694256d001ea819f3 Mon Sep 17 00:00:00 2001 From: Nick Desaulniers Date: Fri, 13 Dec 2019 15:24:20 -0800 Subject: [PATCH] build: make: use -Wl,-z,separate-code w/ -Wl,--execute-only Also, prefer -Wl,--execute-only rather than -Wl,-execute-only Bug: 139945549 Bug: 146144180 Test: m Change-Id: I4a07978c7a84a0a7e841b9e059305b0f443d0e95 Suggested-by: Ryan Prichard Signed-off-by: Nick Desaulniers --- core/binary.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/binary.mk b/core/binary.mk index ae456e3a2..cf3cfd572 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -109,7 +109,7 @@ ifneq ($(strip $(ENABLE_XOM)),false) ifeq ($(strip $(my_xom)),true) ifeq (arm64,$(TARGET_$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) ifeq ($(my_use_clang_lld),true) - my_ldflags += -Wl,-execute-only + my_ldflags += -Wl,--execute-only -Wl,-z,separate-code endif endif endif