]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/emultempl/pe.em
Fix objcopy's --preserve-dates command line option so that it will work with PE forma...
[thirdparty/binutils-gdb.git] / ld / emultempl / pe.em
index db23b221d66adc7ddc64b14aaa4881df9753482a..4fe195ec32abc4eab650121bc7198f1ce1f8bd75 100644 (file)
@@ -1375,7 +1375,10 @@ gld_${EMULATION_NAME}_after_open (void)
   pe_data (link_info.output_bfd)->pe_opthdr = pe;
   pe_data (link_info.output_bfd)->dll = init[DLLOFF].value;
   pe_data (link_info.output_bfd)->real_flags |= real_flags;
-  pe_data (link_info.output_bfd)->insert_timestamp = insert_timestamp;
+  if (insert_timestamp)
+    pe_data (link_info.output_bfd)->timestamp = -1;
+  else
+    pe_data (link_info.output_bfd)->timestamp = 0;
 
   /* At this point we must decide whether to use long section names
      in the output or not.  If the user hasn't explicitly specified