Jon Turney wrote:
On 08/08/2023 11:10, Christian Franke via Cygwin-apps wrote:
Last patch for now.

Left for later: ReBaseImage64() unconditionally updates the timestamp in the file header.

Just for clarity: does this mean that rebasing as it is currently implemented leaves the PE file with an invalid checksum, and the Windows loader is just fine this that?

Or is there something else happening which makes the checksum wrong?



Both rebase and peflags leave the PE file with an invalid checksum.

This is no problem for Cygwin uses cases:
"Checksums are required for kernel-mode drivers and some system DLLs."
https://learn.microsoft.com/en-us/windows/win32/api/imagehlp/nf-imagehlp-mapfileandchecksuma

--
Regards,
Christian

Reply via email to