This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Flip ZERO_AR_DATE default
ClosedPublic

Authored by keith on Oct 8 2022, 9:06 PM.

Details

Reviewers
MaskRay
int3
Group Reviewers
Restricted Project
Commits
rG277c382760bf: [lld-macho] Flip ZERO_AR_DATE default
Summary

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.

Diff Detail

Event Timeline

keith created this revision.Oct 8 2022, 9:06 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 8 2022, 9:06 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
keith requested review of this revision.Oct 8 2022, 9:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 8 2022, 9:06 PM
keith added a comment.Oct 8 2022, 9:07 PM

I don't feel strongly about this if folks think we just shouldn't differ here, it just seems like the right default. For reference even though llvm-ar has D it defaults to this behavior as well.

int3 added a subscriber: int3.Oct 10 2022, 10:40 AM

Fine by me. Can we document this in the ld64-vs-lld.rst doc?

keith updated this revision to Diff 466555.Oct 10 2022, 10:57 AM

Include difference in docs

int3 accepted this revision.Oct 10 2022, 11:07 AM

lgtm

lld/docs/MachO/ld64-vs-lld.rst
64
This revision is now accepted and ready to land.Oct 10 2022, 11:07 AM
keith updated this revision to Diff 466598.Oct 10 2022, 1:09 PM
keith marked an inline comment as done.

Formatting

This revision was landed with ongoing or failed builds.Oct 10 2022, 1:11 PM
This revision was automatically updated to reflect the committed changes.