diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-12-03 10:47:04 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-12-03 10:47:04 +0100 |
commit | 39c7c52cd245bab7760b032159e82317ec411eac (patch) | |
tree | 283b9d093a9cb445d6c07d3626704bb184866f6b | |
parent | 4296f9a07853db15df717fce0310b0c7e5695d87 (diff) |
msp430: note that LTO seems to be broken
-rw-r--r-- | src/arch/msp430fr5969lp/Makefile.inc | 5 |
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} $@ |