Skip to main content
jirre.1
Associate
November 2, 2020
Question

Workaround for GCC LTO Bug

Unfortunately there is a bug regarding the LTO option since GCC 7 until at least GCC 9: https://bugs.launchpad.net/gcc-arm-embedded/+bug/1747966

Can you please consider applying the workaround described there?

I.e. in the generated Makefile the startup code has to be passed first to the linker.

Currently the only option is to remove the interrupts from the startup code, as described here: https://www.disk91.com/2020/technology/programming/code-optimization-with-stm32-cube-ide/

This topic has been closed for replies.