diff options
author | Nick Clifton <nickc@redhat.com> | 2023-08-02 09:23:36 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2023-08-02 09:23:36 +0100 |
commit | 675b9d612cc59446e84e2c6d89b45500cb603a8d (patch) | |
tree | ad4ae6b4b1f1f81aceb945f15c5c12ea2b379689 /bfd/peXXigen.c | |
parent | 69c37f53e20dc3e0b3c179b511ff786db6ae114e (diff) | |
download | gdb-675b9d612cc59446e84e2c6d89b45500cb603a8d.zip gdb-675b9d612cc59446e84e2c6d89b45500cb603a8d.tar.gz gdb-675b9d612cc59446e84e2c6d89b45500cb603a8d.tar.bz2 |
2.41 Release sourcesbinutils-2_41-release
Diffstat (limited to 'bfd/peXXigen.c')
-rw-r--r-- | bfd/peXXigen.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index cdd89f8..da53f34 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -838,20 +838,7 @@ _bfd_XXi_only_swap_filehdr_out (bfd * abfd, void * in, void * out) /* Use a real timestamp by default, unless the no-insert-timestamp option was chosen. */ if ((pe_data (abfd)->timestamp) == -1) - { - time_t now; - char *source_date_epoch; - - /* If the SOURCE_DATE_EPOCH environment variable is - defined then use that as the time, otherwise use - the current time. */ - source_date_epoch = getenv ("SOURCE_DATE_EPOCH"); - if (source_date_epoch) - now = (time_t) strtoll (source_date_epoch, NULL, 10); - else - now = time (NULL); - H_PUT_32 (abfd, now, filehdr_out->f_timdat); - } + H_PUT_32 (abfd, time (0), filehdr_out->f_timdat); else H_PUT_32 (abfd, pe_data (abfd)->timestamp, filehdr_out->f_timdat); |