From 55f60efb40ed1959e863d5a39fc76640d805b64e Mon Sep 17 00:00:00 2001 From: Vasily Galkin Date: Sun, 1 Feb 2026 05:21:05 +0300 Subject: [PATCH] Include MachO load commands introduced in last 10 years Only constants are added, no any advanced data parsing. This alone helps debugging binary vs OS version compatibility details. Thank https://github.com/blacktop/go-macho/blob/e7021ea/types/commands.go for values --- patterns/macho.hexpat | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/patterns/macho.hexpat b/patterns/macho.hexpat index dce01828..986d3148 100644 --- a/patterns/macho.hexpat +++ b/patterns/macho.hexpat @@ -295,7 +295,21 @@ enum Command : u32 { Main = 0x28 | Command::ReqDyLd, DataInCode = 0x29, SourceVersion = 0x2A, - DyLibCodeSignDRS = 0x2B + DyLibCodeSignDRS = 0x2B, + EncryptionInfo64 = 0x2C, + LinkerOption = 0x2D, + LinkerOptimizationHint = 0x2E, + VersionMinTvOS = 0x2F, + VersionMinWatchOS = 0x30, + Note = 0x31, + BuildVersion = 0x32, + DyldExportsTrie = 0x33 | Command::ReqDyLd, + DyldChainedFixups = 0x34 | Command::ReqDyLd, + FilesetEntry = 0x35 | Command::ReqDyLd, + AtomInfo = 0x36, + FunctionVariants = 0x37, + FunctionVariantFixups = 0x38, + TargetTriple = 0x39 }; struct CommandUUID {