https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108332
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- cygwin was improved here: https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=801120c1f402f9b0f72b5a231bf9e1cf82614cac It might be the case mingw linker script is broken ....