We want a deterministic output. GNU AS leaves it zero.
FIXME: It may be optional by its user, like llc and clang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246905
91177308-0d34-0410-b5e6-
96231b3b80d8
Header.PointerToSymbolTable = offset;
+#if (ENABLE_TIMESTAMPS == 1)
// MS LINK expects to be able to use this timestamp to implement their
// /INCREMENTAL feature.
std::time_t Now = time(nullptr);
if (Now < 0 || !isUInt<32>(Now))
Now = UINT32_MAX;
Header.TimeDateStamp = Now;
+#else
+ // We want a deterministic output. It looks like GNU as also writes 0 in here.
+ Header.TimeDateStamp = 0;
+#endif
// Write it all to disk...
WriteFileHeader(Header);