https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88643
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hjl.tools at gmail dot com --- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> --- A linker patch is posted at https://sourceware.org/ml/binutils/2019-04/msg00018.html But it won't work with -O2 since LTO inlines cook before linker can wrap it.