Please see the issues listed here: https://github.com/brechtsanders/winlibs_mingw/issues/112 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106728 Andrew Pinski says it's a binutils bug, starting with 2.39.
I think this is a dup of bug#31527