Files
reactos/sdk/tools
Ahmed Arif 45303a2782 [PEFIXUP] Recalculate checksums for kernel-mode images (#8969)
lld can leave the PE checksum field zero for reproducible output. This is acceptable for user-mode images, but Windows rejects kernel-mode images without a valid checksum.

Keep preserving linker-produced zero checksums for other images, but force checksum recalculation when pefixup is operating on a kernel-mode image.

This was found while validating Clang-built amd64 kmtest drivers against Windows 7: the same driver source built with GCC loaded, while the Clang/lld-built .sys failed with ERROR_BAD_EXE_FORMAT / 0xC1. Recalculating the PE checksum made the Clang-built driver load and the tests run correctly.
2026-05-11 00:48:41 +03:00
..
2024-12-11 08:56:06 +02:00
2025-03-24 18:05:28 +00:00
2026-03-28 11:35:17 -07:00
2025-11-14 13:15:16 +02:00
2025-03-24 18:05:28 +00:00