As of Xcode 15 there is now a tool ID for LLD, likely driven by Apple's
tests with using LLD for their CAS work in clang. This updates LLD to
use the correct ID, and updates the object library so that llvm-objdump
prints it correctly.
Details
Details
- Reviewers
smeenai MaskRay - Group Reviewers
Restricted Project - Commits
- rG806f5b301966: [lld-macho] Switch to new tool ID
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
As of Xcode 15 there is now a tool ID for LLD, likely driven by Apple's tests with using LLD for their CAS work in clang.
The tool ID is something Apple introduced to stamp in the load command what linker is used to produce the executable, and it's unrelated to the CAS.
That's useful to distinguish between ld(1) -- as provided by Apple and 3rd party linkers. dyld can also parse this field potentially to make the behavior more strict on Apple produced binaries, as other linkers could produce slightly broken (for some definition of broken) binaries that can create binary compatibility problems (e.g. some load commands aren't emitted).
Thanks for adopting. HTH.