aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorJohannes Schauer Marin Rodrigues <josch@debian.org>2023-07-24 16:59:19 +0100
committerNick Clifton <nickc@redhat.com>2023-07-24 16:59:19 +0100
commit6badd1020f5bebd3f60a780b8e41a1b581046087 (patch)
tree0b1d5349acee5860922b00f2bf00c958d34b0d43 /binutils
parent4701770c57af26fd410f652dc5f742a10d1c54dc (diff)
downloadgdb-6badd1020f5bebd3f60a780b8e41a1b581046087.zip
gdb-6badd1020f5bebd3f60a780b8e41a1b581046087.tar.gz
gdb-6badd1020f5bebd3f60a780b8e41a1b581046087.tar.bz2
objcopy embeds the current time and ignores SOURCE_DATE_EPOCH making the output unreproducible.
bfd * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): If inserting a timestamp, use the value held in the SOURCE_DATE_EPOCH environment variable, if it is defined. binutils * doc/binutils.texi (objcopy): Document change in behaviour of objcopy's --preserve-dates command line option. ld * pe-dll.c (fill_edata): If inserting a timestamp, use the value held in the SOURCE_DATE_EPOCH environment variable, if it is defined. * ld.texi (--insert-timestamp): Document change in behaviour.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/doc/binutils.texi5
2 files changed, 10 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 097673f..cfd4d1a 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2023-07-24 Johannes Schauer Marin Rodrigues <josch@debian.org>
+
+ * doc/binutils.texi (objcopy): Document change in behaviour of
+ objcopy's --preserve-dates command line option.
+
2023-07-09 Fangrui Song <maskray@google.com>
PR 30592
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi
index 309bedf..9f80f39 100644
--- a/binutils/doc/binutils.texi
+++ b/binutils/doc/binutils.texi
@@ -1626,6 +1626,11 @@ commands. If the input was '12345678' then the outputs would be
Set the access and modification dates of the output file to be the same
as those of the input file.
+This option also copies the date stored in a PE format file's header,
+unless the SOURCE_DATE_EPOCH environment variable is defined. If it
+is defined then this variable will be used as the date stored in the
+header, interpreted as the number of seconds since the Unix epoch.
+
@item -D
@itemx --enable-deterministic-archives
@cindex deterministic archives