From: Richard Henderson Date: Thu, 25 Oct 2001 06:33:56 +0000 (+0000) Subject: * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy X-Git-Tag: cygnus_cvs_20020108_pre~936 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b6488e20b25d135b430a3cc920fe02bec3b84b3;p=external%2Fbinutils.git * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy timestamp to time_t for ctime. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e41c153..ae6e1b8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2001-10-24 Richard Henderson + + * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy + timestamp to time_t for ctime. + 2001-10-24 Hans-Peter Nilsson * elf32-cris.c (cris_reloc_type_lookup): Change loop to use diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index cc2a5ef..37f4d1a 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -1767,7 +1767,10 @@ _bfd_XX_print_private_bfd_data_common (abfd, vfile) #undef PF /* ctime implies '\n'. */ - fprintf (file, "\nTime/Date\t\t%s", ctime (&pe->coff.timestamp)); + { + time_t t = pe->coff.timestamp; + fprintf (file, "\nTime/Date\t\t%s", ctime (&t)); + } fprintf (file, "\nImageBase\t\t"); fprintf_vma (file, i->ImageBase); fprintf (file, "\nSectionAlignment\t");