https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |arm-none-eabi-gcc
CC| |hjl.tools at gmail dot com
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
You want to look at the output of the linker resolution file (compile with -v
-save-temps and look for -fresolution=<filename>). The linker probably tells
GCC that its "weak" foo() definition is prevailing. This either makes it
a non-bug or a binutils bug then.