https://bugs.llvm.org/show_bug.cgi?id=52227
Bug ID: 52227
Summary: majorOSVersion and majorSubsystemVersion are set into
too large values
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: COFF
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Created attachment 25375
--> https://bugs.llvm.org/attachment.cgi?id=25375&action=edit
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 fine on XP and ReactOS.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs