diff options
author | Johannes Schauer Marin Rodrigues <josch@debian.org> | 2023-07-24 16:59:19 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2023-07-24 16:59:19 +0100 |
commit | 6badd1020f5bebd3f60a780b8e41a1b581046087 (patch) | |
tree | 0b1d5349acee5860922b00f2bf00c958d34b0d43 /binutils/doc | |
parent | 4701770c57af26fd410f652dc5f742a10d1c54dc (diff) | |
download | binutils-6badd1020f5bebd3f60a780b8e41a1b581046087.zip binutils-6badd1020f5bebd3f60a780b8e41a1b581046087.tar.gz binutils-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/doc')
-rw-r--r-- | binutils/doc/binutils.texi | 5 |
1 files changed, 5 insertions, 0 deletions
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 |