load_commands: add LC_LAZY_LOAD_DYLIB_INFO#961
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds support for a newly introduced Mach-O load command constant so the library can recognize and parse binaries produced with newer macOS SDKs.
Changes:
- Add
LC_LAZY_LOAD_DYLIB_INFO(0x3a) to the load-command ID → symbol mapping. - Map
LC_LAZY_LOAD_DYLIB_INFOtoLinkeditDataCommandin the symbol → structure mapping. - Update
LinkeditDataCommanddocumentation to include the new command.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
woodruffw
approved these changes
Mar 25, 2026
Member
|
Thanks @Bo98! Is there a binary we can use for test of this? |
Member
Author
|
I'm not aware of any linker option to actually output these binaries. It might become clearer when dyld and/or cctools source code is released for macOS/Xcode 26.4, though the new linker is more and more closed source nowadays. It's also possible it might only be activated with macOS 27. We've seen that before. Or just end up a mystery like LC_TARGET_TRIPLE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fresh from the macOS 26.4 SDK.
Or fresh in that I committed this based on the beta last month but waited for final release to run
git push.