From 7fa813fcac021842d2079f86c3eef864fc6a561a Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Thu, 21 Jul 2022 19:49:43 -0500 Subject: [PATCH] Comment Magic types --- helpers/macho/macho.magic.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/helpers/macho/macho.magic.js b/helpers/macho/macho.magic.js index 34cc0d1..d9e5ea2 100644 --- a/helpers/macho/macho.magic.js +++ b/helpers/macho/macho.magic.js @@ -13,13 +13,29 @@ let MAGIC = { //Macho Magics + + // cafebabe: Universal Binary Big Endian. These fat binaries are archives that can include binaries for multiple architectures, but typically contain PowerPC, Intel x86, or ARM. FAT_MAGIC: 0xcafebabe, + + // bebafeca: NXSwapLong(FAT_MAGIC) FAT_CIGAM: 0xbebafeca, + + // cafebabf: ??? FAT_MAGIC64: 0xcafebabf, + + // bfbafeca: ??? FAT_CIGAM64: 0xbfbafeca, + + // feedface: Mach-O Big Endian (32-bit) MH_MAGIC: 0xfeedface, + + // cefaedfe: Mach-O Little Endian (32-bit) MH_CIGAM: 0xcefaedfe, + + // feedfacf: Mach-O Big Endian (64-bit) MH_MAGIC64: 0xfeedfacf, + + // cffaedfe: Mach-O Little Endian (64-bit) MH_CIGAM64: 0xcffaedfe, //Retrieve the magic name of a specified magic