On Aug 7 16:26, Christian Franke via Cygwin-apps wrote: > This patch is on top of the --timestamp patch. Could not be applied to > current HEAD without conflicts. > > -- > Regards, > Christian >
> From 9ecaf86bff5d229bf5b2a1ba1ff4674526fc1b68 Mon Sep 17 00:00:00 2001 > From: Christian Franke <christian.fra...@t-online.de> > Date: Mon, 7 Aug 2023 15:52:14 +0200 > Subject: [PATCH] peflags: Add -k, --checksum option > > This allows to fix the file checksum in the PE header. > An invalid checksum may break reproducible builds or may > increase the risk of false positive malware detections. > The checksum calculation is done by a new self-contained module > 'pechecksum.c' which could also be built as a stand-alone tool > or later added to rebase. > > Signed-off-by: Christian Franke <christian.fra...@t-online.de> > --- > Makefile.in | 6 +- > pechecksum.c | 195 +++++++++++++++++++++++++++++++++++++++++++++++++++ > pechecksum.h | 25 +++++++ > peflags.c | 129 ++++++++++++++++++++++++++++++++-- > 4 files changed, 347 insertions(+), 8 deletions(-) > create mode 100644 pechecksum.c > create mode 100644 pechecksum.h Pushed. Thanks, Corinna