mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
Produce deterministic coff files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196341 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a61f9456a0
commit
d060bfc11e
@ -845,7 +845,8 @@ void WinCOFFObjectWriter::WriteObject(MCAssembler &Asm,
|
||||
|
||||
Header.PointerToSymbolTable = offset;
|
||||
|
||||
Header.TimeDateStamp = sys::TimeValue::now().toEpochTime();
|
||||
// We want a deterministic output. It looks like GUN as also writes 0 in here.
|
||||
Header.TimeDateStamp = 0;
|
||||
|
||||
// Write it all to disk...
|
||||
WriteFileHeader(Header);
|
||||
|
4
test/MC/COFF/timestamp.s
Normal file
4
test/MC/COFF/timestamp.s
Normal file
@ -0,0 +1,4 @@
|
||||
// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s -o - | llvm-readobj -h | FileCheck %s
|
||||
|
||||
// CHECK: ImageFileHeader {
|
||||
// CHECK: TimeDateStamp: {{.*}} (0x0)
|
Loading…
x
Reference in New Issue
Block a user