diff --git a/arch/arm64/src/Toolchain.defs b/arch/arm64/src/Toolchain.defs index 162d4fd411695..21d86823c5b8b 100644 --- a/arch/arm64/src/Toolchain.defs +++ b/arch/arm64/src/Toolchain.defs @@ -97,6 +97,10 @@ ifeq ($(CONFIG_ARCH_FPU),y) ARCHCFLAGS += -D_LDBL_EQ_DBL endif +ifeq ($(CONFIG_IMX9_BOOTLOADER),y) +ARCHCFLAGS += -mstrict-align +endif + ARCHCFLAGS += -fno-common ARCHCXXFLAGS += -fno-common