I'm building my gcc with bleeding edge script from Freedie Chopin: https://github.com/FreddieChopin/bleedi ... -toolchain
GNU objdump (bleeding-edge-toolchain) 2.30
arm-none-eabi-gcc (bleeding-edge-toolchain) 8.1.0
Normal builds work until I enable LTO with -ggdb.
demos/STM32/RT-STM32F411RE-NUCLEO64
Code: Select all
Linking build/ch.elf
Creating build/ch.hex
Creating build/ch.bin
Creating build/ch.dmp
text data bss dec hex filename
66108 140 130928 197176 30238 build/ch.elf
Creating build/ch.list
/home/nico/Tools/arm-none-eabi-gcc-8.1.0-180507/bin/arm-none-eabi-objdump: Dwarf Error: Offset (100729344) greater than or equal to .debug_str size (3109).
/home/nico/Tools/arm-none-eabi-gcc-8.1.0-180507/bin/arm-none-eabi-objdump: Dwarf Error: Offset (84148736) greater than or equal to .debug_str size (3109).
(Offset errors repeated several times)
/home/nico/Tools/arm-none-eabi-gcc-8.1.0-180507/bin/arm-none-eabi-objdump: Dwarf Error: Could not find abbrev number 43.
Code: Select all
diff --git a/demos/STM32/RT-STM32F411RE-NUCLEO64/Makefile b/demos/STM32/RT-STM32F411RE-NUCLEO64/Makefile
index bc8a138c..82b1b24a 100644
--- a/demos/STM32/RT-STM32F411RE-NUCLEO64/Makefile
+++ b/demos/STM32/RT-STM32F411RE-NUCLEO64/Makefile
@@ -30,7 +30,7 @@ endif
# Enable this if you want link time optimizations (LTO)
ifeq ($(USE_LTO),)
- USE_LTO = no
+ USE_LTO = yes
endif
# If enabled, this option allows to compile the application in THUMB mode.