https://bugs.winehq.org/show_bug.cgi?id=50257
--- Comment #4 from Damjan Jovanovic damjan.jov@gmail.com --- (In reply to Piotr Caban from comment #3)
What compiler did you use?
GCC 9.3.0 for the broken ELF build, along with mingw-w64's GCC 10.2.0 for the working PE build.