diff --git a/boards/sim/sim/sim/scripts/Make.defs b/boards/sim/sim/sim/scripts/Make.defs index 2d03dd3200c8e..dd94bcabcd840 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