https://bugs.llvm.org/show_bug.cgi?id=52227
Added support of Windows XP for the files generated by Clang and lld. The too high values in these fields cause inability to run the programs compiled with Clang (using MinGW-w64 free and open source runtime) on Windows XP and ReactOS. I have implemented the patch intended to fix that. This patch sets the version to 4.0 - the one used in MinGW shared libs. I haven't tested this patch myself, because compiling llvm is time- and resource-consuming proccess, but I have implemented a stopgap tool in python for patching PE headers, https://github.com/KOLANICH-tools/PEHeaderFixer.py , and used it to patch the binaries generated by LLD 14 + CLang 14. The resulting binaries have worked on XP and ReactOS.