https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83967
eitan at mosenkis dot net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eitan at mosenkis dot net --- Comment #15 from eitan at mosenkis dot net --- (In reply to Matthijs Kooijman from comment #14) > I actually think this is a different problem from the fixed > https://sourceware.org/bugzilla/show_bug.cgi?id=22502. Using gcc 8.2.1 and > binutils 2.31.51.20181213 from the STM32 Arduino core > (https://github.com/stm32duino/Arduino_Core_STM32), I can still reproduce > this problem using the example from comment 11 (and also in an actual > implementation using stm32duino). I also tested the example from the linked > bug, which *is* indeed fixed, leading me to believe this is a different > problem (or the fix is not complete yet). > > The example from this bug is a lot bigger than the one from 22502, so there > is probably something in here that triggers this. Maybe that the weak > implementation is defined in assembly rather than C? I am also still able to reproduce the problem in production code (http://github.com/solokeys/solo) using GNU ld (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 2.33.1.20191025.