https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118136
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Calling main is undefined in C++; I don't remember if it is valid in free standing though. I am not sure if it is well defined in C though. Obvious workaround is not to have _start as LTO code.