+2023-10-02 Nick Clifton <nickc@redhat.com>
+
+ * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Use
+ bfd_get_current_time when filing in the timestamp.
+
2023-09-29 Nick Clifton <nickc@redhat.com>
PR 30906
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);
+ time_t now = bfd_get_current_time (0);
H_PUT_32 (abfd, now, filehdr_out->f_timdat);
}
else
+2023-10-02 Nick Clifton <nickc@redhat.com>
+
+ * pe-dll.c (fill_edata): Use bfd_get_current_time when filling in
+ the timestamp.
+
2023-09-27 Hsinyuan Xavier <TheLastLin@hotmail.com>
PR 30875
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);
-
+ time_t now = bfd_get_current_time (0);
H_PUT_32 (abfd, now, edata_d + 4);
}
else