-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mach/load_command: Add some missing load commands (#240)
* mach/load_command: Add some missing load commands Adds support for `LC_VERSION_MIN_{TV,WATCH}OS`, as well as `LC_VERSION_EXPORTS_TRIE` and `LC_VERSION_CHAINED_FIXUPS`. Each of the above maps to a pre-existing load command structure, so no additional structure definitions were necessary. Also adds constant support for `LC_NOTE` and `LC_BUILD_VERSION`. These require new load command structures (and substructures, in the case of `LC_BUILD_VERSION`), so I left them out of this PR in the interest of brevity. I can do them in a follow-up PR, if desired. * mach/load_command: Add a Platform enum Uses the Platform enum to supply the appropriate load command number to `VersionMinCommand`, and implements the appropriate lossless/lossy traits for round-tripping with a `u32`. * MSRV: 1.40.0
- Loading branch information
Showing
3 changed files
with
89 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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