[lld-macho] Flip ZERO_AR_DATE default
authorKeith Smiley <keithbsmiley@gmail.com>
Sun, 9 Oct 2022 04:04:56 +0000 (21:04 -0700)
committerKeith Smiley <keithbsmiley@gmail.com>
Mon, 10 Oct 2022 20:10:09 +0000 (13:10 -0700)
commit277c382760bf9575cfa2eac73d5ad1db91466d3f
tree14f675a3d33c17b524fdc7e4b3d20941e971267d
parentd208baee65ec15a2ea15ec17e8fe676b07296ad9
[lld-macho] Flip ZERO_AR_DATE default

Previously unless ZERO_AR_DATE was set to any value, ld64.lld would
embed non-hermetic timestamps into the final binary. This flips that
default to zero those values unless ZERO_AR_DATE is set explicitly to 0.
As far as I know there isn't a downside to this, except that it differs
from ld64.

Differential Revision: https://reviews.llvm.org/D135529
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/docs/MachO/ld64-vs-lld.rst
lld/test/MachO/lto-object-path.ll
lld/test/MachO/stabs.s