https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81413
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- The linker model on Windows is weird, there are already existing bugs about this (at least PR 77726 but others too). It works fine on other platforms.