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 /ld/pe-dll.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 'ld/pe-dll.c')
-rw-r--r-- | ld/pe-dll.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/ld/pe-dll.c b/ld/pe-dll.c index a95b85c..02e03d1 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -1231,18 +1231,7 @@ fill_edata (bfd *abfd, struct bfd_link_info *info ATTRIBUTE_UNUSED) memset (edata_d, 0, edata_sz); if (pe_data (abfd)->timestamp == -1) - { - time_t now; - char *source_date_epoch; - - 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, edata_d + 4); - } + H_PUT_32 (abfd, time (0), edata_d + 4); else H_PUT_32 (abfd, pe_data (abfd)->timestamp, edata_d + 4); |