Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9882f6f7 authored by Nick Desaulniers's avatar Nick Desaulniers
Browse files

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: default avatarRyan Prichard <rprichard@google.com>
Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
parent b3bff1d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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