Skip to content

Commit

Permalink
arch/arm64: Use mstrict-align
Browse files Browse the repository at this point in the history
Use -mstrict align when building imx9 bootloader

Signed-off-by: Jouni Ukkonen <[email protected]>
  • Loading branch information
joukkone committed Oct 17, 2024
1 parent 3eb1800 commit 7586ebc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm64/src/Toolchain.defs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7586ebc

Please sign in to comment.