summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/msp430fr5994lp/Makefile.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/msp430fr5994lp/Makefile.inc b/src/arch/msp430fr5994lp/Makefile.inc
index 8c78d1b..4d1009f 100644
--- a/src/arch/msp430fr5994lp/Makefile.inc
+++ b/src/arch/msp430fr5994lp/Makefile.inc
@@ -9,6 +9,10 @@ INCLUDES += -I/opt/msp430/ti/msp430-gcc-full-linux-5.0.0.36/include
COMMON_FLAGS += -mcpu=${CPU} -mmcu=${MCU} -DMULTIPASS_ARCH_msp430fr5994lp
COMMON_FLAGS += -DMULTIPASS_ARCH_HAS_I2C
+ifneq (${msp430_large}, )
+ COMMON_FLAGS += -mcode-region=either -mlarge
+endif
+
# LTO seems to be broken.
CC = /opt/msp430/ti/msp430-gcc-full-linux-5.0.0.36/bin/msp430-elf-gcc