Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.5][clang][Driver] Make multiarch output file basenames reproducible #3483

Conversation

keith
Copy link
Member

@keith keith commented Oct 28, 2021

When building a multiarch MachO binary, previously the intermediate
output file names would contain random characters. On macOS this
filename, since it's used when linking, ended up being used as a
stable-ish identifier for the adhoc codesignature of the binary, leading
to non-reproducible binaries. This change uses the architecture, when
available, to create a stable, but unique, basename for the file.

Differential Revision: https://reviews.llvm.org/D111269

This fixes FB9727658 (although the linker should still probably be
updated to fix other related use cases)

(cherry picked from commit 17386cb)

When building a multiarch MachO binary, previously the intermediate
output file names would contain random characters. On macOS this
filename, since it's used when linking, ended up being used as a
stable-ish identifier for the adhoc codesignature of the binary, leading
to non-reproducible binaries. This change uses the architecture, when
available, to create a stable, but unique, basename for the file.

Differential Revision: https://reviews.llvm.org/D111269

This fixes FB9727658 (although the linker should still probably be
updated to fix other related use cases)

(cherry picked from commit 17386cb)
@keith
Copy link
Member Author

keith commented Oct 28, 2021

@fredriss since you're mentioned as the release manager

@keith
Copy link
Member Author

keith commented Mar 21, 2022

This definitely missed the train, this fix is included in 5.6 which shipped with Xcode 13.3

@keith keith closed this Mar 21, 2022
@keith keith deleted the ks/5.5-clang-driver-make-multiarch-output-file-basenames-reproducible branch March 21, 2022 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant