diff --git a/boards/sim/sim/sim/scripts/Make.defs b/boards/sim/sim/sim/scripts/Make.defs index 5e80ac6d0c094..a801858f3ee17 100644 --- a/boards/sim/sim/sim/scripts/Make.defs +++ b/boards/sim/sim/sim/scripts/Make.defs @@ -143,8 +143,8 @@ ifeq ($(CONFIG_SIM_M32),y) ARCHCFLAGS += -m32 ARCHCXXFLAGS += -m32 else - ARCHCFLAGS += -fno-pic -mcmodel=medium - ARCHCXXFLAGS += -fno-pic -mcmodel=medium + ARCHCFLAGS += -fno-pic -mcmodel=large + ARCHCXXFLAGS += -fno-pic -mcmodel=large endif # LLVM style architecture flags