https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
Eason Lai <sen2403 at hotmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sen2403 at hotmail dot com
--- Comment #8 from Eason Lai <sen2403 at hotmail dot com> ---
This problem can be reproduced by arm-none-eabi-gcc 10.2.1-q4 toolchain.
The weak definition in LTO object is been inline directly even there is a
strong definition in normal object. And, the problem is gone if changing
optimization from (-Os) to (-O1 or -O0).