https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95928
--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to H.J. Lu from comment #6) > It has nothing to do with LTO. You get the same behavior without LTO. > This is how weak symbol works. BTW, this is why I proposed STB_SECONDARY: https://gcc.gnu.org/legacy-ml/gcc/2012-06/msg00390.html