summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-12-03 10:47:04 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-12-03 10:47:04 +0100
commit39c7c52cd245bab7760b032159e82317ec411eac (patch)
tree283b9d093a9cb445d6c07d3626704bb184866f6b
parent4296f9a07853db15df717fce0310b0c7e5695d87 (diff)
msp430: note that LTO seems to be broken
-rw-r--r--src/arch/msp430fr5969lp/Makefile.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/msp430fr5969lp/Makefile.inc b/src/arch/msp430fr5969lp/Makefile.inc
index 6c4b62a..89956d6 100644
--- a/src/arch/msp430fr5969lp/Makefile.inc
+++ b/src/arch/msp430fr5969lp/Makefile.inc
@@ -9,6 +9,8 @@ INCLUDES += -I/opt/msp430/ti/gcc/include
COMMON_FLAGS += -mcpu=${CPU} -mmcu=${MCU} -DMULTIPASS_ARCH_msp430fr5969lp
COMMON_FLAGS += -DMULTIPASS_ARCH_HAS_I2C
+# LTO seems to be broken.
+
CC = /opt/msp430/ti/gcc/bin/msp430-elf-gcc
CXX = /opt/msp430/ti/gcc/bin/msp430-elf-g++
OBJCOPY = /opt/msp430/ti/gcc/bin/msp430-elf-objcopy
@@ -71,7 +73,8 @@ OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o}
build/system.elf: ${OBJECTS}
${QUIET}${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} \
-Wl,--library-path=/opt/msp430/ti/gcc/include/ \
- -flto -o $@ ${OBJECTS}
+ -Wl,--gc-sections \
+ -o $@ ${OBJECTS}
build/system.hex: build/system.elf
${QUIET}${OBJCOPY} -O ihex ${@:.hex=.elf} $@