From 1a0198a1015fab2991a0892186e6d499711f4456 Mon Sep 17 00:00:00 2001 From: mirabilos Date: Mon, 14 Apr 2025 23:53:03 +0000 Subject: =?UTF-8?q?elf2flt:=20don=E2=80=99t=20record=20the=20build=20date?= =?UTF-8?q?=20into=20the=20binaries=E2=80=99=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit while this already supports the SOURCE_DATE_EPOCH standard for reproducible builds, and even setting it to 0, some other tools choke on values below 1980, so instead patch out the recording altogether, as it also compresses better --- .../0009-no-build-date.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 toolchain/elf2flt/patches/453398f917d167f8c308c8f997270c48ae8f8b12/0009-no-build-date.patch (limited to 'toolchain') diff --git a/toolchain/elf2flt/patches/453398f917d167f8c308c8f997270c48ae8f8b12/0009-no-build-date.patch b/toolchain/elf2flt/patches/453398f917d167f8c308c8f997270c48ae8f8b12/0009-no-build-date.patch new file mode 100644 index 000000000..06273ef4b --- /dev/null +++ b/toolchain/elf2flt/patches/453398f917d167f8c308c8f997270c48ae8f8b12/0009-no-build-date.patch @@ -0,0 +1,11 @@ +--- elf2flt-453398f917d167f8c308c8f997270c48ae8f8b12.orig/elf2flt.c 2025-04-14 19:50:51.016711969 +0000 ++++ elf2flt-453398f917d167f8c308c8f997270c48ae8f8b12/elf2flt.c 2025-04-14 23:14:52.212092781 +0000 +@@ -2132,7 +2132,7 @@ int main(int argc, char *argv[]) + | (pic_with_got ? FLAT_FLAG_GOTPIC : 0) + | (docompress ? (docompress == 2 ? FLAT_FLAG_GZDATA : FLAT_FLAG_GZIP) : 0) + ); +- hdr.build_date = htonl((uint32_t)get_build_date()); ++ hdr.build_date = 0; + memset(hdr.filler, 0x00, sizeof(hdr.filler)); + + for (i=0; i