diff --git a/core/binary.mk b/core/binary.mk index 27f111d185..38ff9d650a 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -90,32 +90,6 @@ ifneq (,$(filter $(addsuffix %,$(ALLOWED_MANUAL_INTERFACE_PATHS)),$(LOCAL_PATH)) my_cflags += -DDO_NOT_CHECK_MANUAL_BINDER_INTERFACES endif -ifneq ($(strip $(ENABLE_XOM)),false) - ifndef LOCAL_IS_HOST_MODULE - my_xom := true - # Disable XOM in excluded paths. - combined_xom_exclude_paths := $(XOM_EXCLUDE_PATHS) \ - $(PRODUCT_XOM_EXCLUDE_PATHS) - ifneq ($(strip $(foreach dir,$(subst $(comma),$(space),$(combined_xom_exclude_paths)),\ - $(filter $(dir)%,$(LOCAL_PATH)))),) - my_xom := false - endif - - # Allow LOCAL_XOM to override the above - ifdef LOCAL_XOM - my_xom := $(LOCAL_XOM) - endif - - 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 -Wl,-z,separate-code - endif - endif - endif - endif -endif - my_allow_undefined_symbols := $(strip $(LOCAL_ALLOW_UNDEFINED_SYMBOLS)) ifdef SANITIZE_HOST ifdef LOCAL_IS_HOST_MODULE diff --git a/core/clear_vars.mk b/core/clear_vars.mk index bbc117fe20..e27d91c27e 100644 --- a/core/clear_vars.mk +++ b/core/clear_vars.mk @@ -314,7 +314,6 @@ LOCAL_VTS_INCLUDES:= LOCAL_VTS_MODE:= LOCAL_WARNINGS_ENABLE:= LOCAL_WHOLE_STATIC_LIBRARIES:= -LOCAL_XOM:= LOCAL_YACCFLAGS:= LOCAL_CHECK_ELF_FILES:= # TODO: deprecate, it does nothing diff --git a/core/product.mk b/core/product.mk index 55cbc5e51c..25a9c44665 100644 --- a/core/product.mk +++ b/core/product.mk @@ -350,8 +350,6 @@ _product_list_vars += PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS # system.img), so devices need to install the package in a system-only OTA manner. _product_single_value_vars += PRODUCT_BUILD_GENERIC_OTA_PACKAGE -# Whether any paths are excluded from being set XOM when ENABLE_XOM=true -_product_list_vars += PRODUCT_XOM_EXCLUDE_PATHS _product_list_vars += PRODUCT_MANIFEST_PACKAGE_NAME_OVERRIDES _product_list_vars += PRODUCT_PACKAGE_NAME_OVERRIDES _product_list_vars += PRODUCT_CERTIFICATE_OVERRIDES diff --git a/core/soong_config.mk b/core/soong_config.mk index d6248432c0..f31c9a0c0b 100644 --- a/core/soong_config.mk +++ b/core/soong_config.mk @@ -101,8 +101,6 @@ $(call add_json_bool, Safestack, $(filter true,$(USE_SAF $(call add_json_bool, EnableCFI, $(call invert_bool,$(filter false,$(ENABLE_CFI)))) $(call add_json_list, CFIExcludePaths, $(CFI_EXCLUDE_PATHS) $(PRODUCT_CFI_EXCLUDE_PATHS)) $(call add_json_list, CFIIncludePaths, $(CFI_INCLUDE_PATHS) $(PRODUCT_CFI_INCLUDE_PATHS)) -$(call add_json_bool, EnableXOM, $(call invert_bool,$(filter false,$(ENABLE_XOM)))) -$(call add_json_list, XOMExcludePaths, $(XOM_EXCLUDE_PATHS) $(PRODUCT_XOM_EXCLUDE_PATHS)) $(call add_json_list, IntegerOverflowExcludePaths, $(INTEGER_OVERFLOW_EXCLUDE_PATHS) $(PRODUCT_INTEGER_OVERFLOW_EXCLUDE_PATHS)) $(call add_json_bool, Experimental_mte, $(filter true,$(TARGET_EXPERIMENTAL_MTE)))