https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100486
--- Comment #51 from Christoph Reiter <reiter.christoph at gmail dot com> --- (In reply to Eric Botcazou from comment #50) > > Yes, from 2.36.1 to 2.37, but I've already tried reverting that and it > > didn't help. I'm going to try older versions (of everything) though.. > > This could as well be a miscompilation of the linker. Can you upload ld.exe > somewhere so that I replace mine with it? If you happen to have an tool that supports extracting .tar.zst you could take the .exe from package directly: https://repo.msys2.org/mingw/mingw32/mingw-w64-i686-binutils-2.37-4-any.pkg.tar.zst