Closed
Description
The previous attempt (#10878) to fix #10512 has a couple of problems:
- Sometimes UpdateResource corrupts executables produced by binutils. (The executable still runs, however tools like dumpbin report corrupted PE header, and gdb crashes when trying to read debug info).
- More importantly, this approach does not work for cross-compilation, because, well, you can't call Windows API if the host system is not Windows.