https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65581
--- Comment #13 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Rainer, the compiled code (test.s) is identical to what LTO path produces, so I am convinced this is a bug at binutils side. Would you please mind filling up the PR? There are two issues at least - first is that the resolution of main should be PREVAILING_DEF and second that it should not fail with undefined symbol.