1ifeq ($(BR2_arc),y) 2 3# -matomic is always required when the ARC core has the atomic extensions 4ifeq ($(BR2_ARC_ATOMIC_EXT),y) 5ARCH_TOOLCHAIN_WRAPPER_OPTS = -matomic 6endif 7 8# Explicitly set LD's "max-page-size" instead of relying on some defaults 9ifeq ($(BR2_ARC_PAGE_SIZE_4K),y) 10ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=4096 11else ifeq ($(BR2_ARC_PAGE_SIZE_8K),y) 12ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=8192 13else ifeq ($(BR2_ARC_PAGE_SIZE_16K),y) 14ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=16384 15endif 16 17endif 18