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

Alexander Monakov <amonakov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amonakov at gcc dot gnu.org

--- Comment #2 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
GCC inlines _pei386_runtime_relocator and doesn't emit it because it doesn't
know that it's also referenced implicitly.

Does _pei386_runtime_relocator need to participate in LTO at all? If not, I'd
suggest moving it to a separate file that is compiled with -fno-lto.

If the linker can decide if it's needed only after seeing all post-LTO objects,
that might be the only solution.

Reply via email to