Skip to content

load_commands: add LC_LAZY_LOAD_DYLIB_INFO#961

Merged
woodruffw merged 1 commit intomainfrom
LC_LAZY_LOAD_DYLIB_INFO
Mar 25, 2026
Merged

load_commands: add LC_LAZY_LOAD_DYLIB_INFO#961
woodruffw merged 1 commit intomainfrom
LC_LAZY_LOAD_DYLIB_INFO

Conversation

@Bo98
Copy link
Copy Markdown
Member

@Bo98 Bo98 commented Mar 24, 2026

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.

Copilot AI review requested due to automatic review settings March 24, 2026 21:39
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_INFO to LinkeditDataCommand in the symbol → structure mapping.
  • Update LinkeditDataCommand documentation to include the new command.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@p-linnane p-linnane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fresh 😎

@woodruffw
Copy link
Copy Markdown
Member

Thanks @Bo98! Is there a binary we can use for test of this?

@Bo98
Copy link
Copy Markdown
Member Author

Bo98 commented Mar 25, 2026

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.

@woodruffw woodruffw merged commit afcf11d into main Mar 25, 2026
21 checks passed
@woodruffw woodruffw deleted the LC_LAZY_LOAD_DYLIB_INFO branch March 25, 2026 14:07
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.

4 participants