https://bugs.winehq.org/show_bug.cgi?id=47718
--- Comment #1 from Andrew Eikum aeikum@codeweavers.com --- I've sent fixes to binutils for this. They should be included in the 2.34 release. Judging by their historical release schedule, that should be around the middle of 2020.
From http://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git :
commit 2f1575ea6f93a3f0c2b439ac6bf5fe34ef42a1ad Author: Andrew Eikum aeikum@codeweavers.com Date: Tue Oct 29 08:02:34 2019 +0000
Fix the size of the dos_message field in the internal_extra_pe_filehdr structure on hosts where sizeof(long) == 8.
commit 70cf683455e1a3429d517a2e25a36c438474cfde (origin/master, origin/HEAD) Author: Andrew Eikum aeikum@codeweavers.com Date: Tue Oct 29 17:07:03 2019 +0000
When copying pe format files, copy the dos_message array, rather than re-initiialising it.