COFF/PE: don't leave zero timestamp after objcopy / strip
authorJan Beulich <jbeulich@suse.com>
Thu, 19 May 2022 10:44:32 +0000 (12:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 19 May 2022 10:44:32 +0000 (12:44 +0200)
commit6db1e45d7b85634679bc6dedf4e4a2c78fed74d4
tree73e31ac40a3a154155bf5a2064498f0967da2775
parentce462d043509df3f3384decdf2019a1c85051640
COFF/PE: don't leave zero timestamp after objcopy / strip

Fill the timestamp field suitably for _bfd_XXi_only_swap_filehdr_out().
Instead of re-arranging the present if(), fold this logic with that of
copying the optional header.
binutils/objcopy.c