https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98729
--- Comment #1 from Brecht Sanders <brechtsanders at users dot sourceforge.net> --- I have discovered that adding `-s` to the above build command or stripping the .exe file with `strip` does allow it to run. So probably something is messed up in the debugging symbols section.