[Bug ipa/122460] Linking is broken when linking with MinGW crt object files compiled with LTO enabled and either codeview debugging information or -ffunction-sections -fdata-sections -Wl, --gc-sections are also on

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 28 12:59:33 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122460

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I am not sure having crt being compiled with LTO is a valid use case.
crt usually has toplevel inline-asm that is designed not for LTO.


More information about the Gcc-bugs mailing list