This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho]Use install_name as Identifier for code-sign, if available.
ClosedPublic

Authored by oontvoo on Jul 17 2023, 12:40 PM.

Details

Summary

Detail:
LD64 uses the name provided via -[dylib]install_name as "Identifier", when available.
For compatiblity, LLD should do that too.

Diff Detail

Event Timeline

oontvoo created this revision.Jul 17 2023, 12:40 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 17 2023, 12:40 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
oontvoo requested review of this revision.Jul 17 2023, 12:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2023, 12:40 PM
oontvoo updated this revision to Diff 541678.Jul 18 2023, 12:43 PM

updated test to verify the Identifier field

oontvoo updated this revision to Diff 541679.Jul 18 2023, 12:43 PM

rebase + updated commit msg

oontvoo edited the summary of this revision. (Show Details)Jul 18 2023, 12:43 PM
oontvoo added a reviewer: keith.

Hey @keith ! Since you'd added support for the adhoc-codesign stuff, wanna have a quick review on this? TIA!

keith accepted this revision.Jul 19 2023, 11:11 AM

Interestingly this one even takes precedent over -final_output if we ever implement that FIXME

This revision is now accepted and ready to land.Jul 19 2023, 11:11 AM