Define LC_ENCRYPTION_INFO_64

This commit is contained in:
pancake 2014-12-17 13:56:21 +01:00
parent e831b14a15
commit c42056228d
2 changed files with 3 additions and 0 deletions

View File

@ -282,6 +282,7 @@ struct load_command {
#define LC_REEXPORT_DYLIB (0x1f | LC_REQ_DYLD) /* load and re-export dylib */
#define LC_LAZY_LOAD_DYLIB 0x20 /* delay load of dylib until first use */
#define LC_ENCRYPTION_INFO 0x21 /* encrypted segment information */
#define LC_ENCRYPTION_INFO_64 0x2c /* encrypted segment information */
#define LC_DYLD_INFO 0x22 /* compressed dyld information */
#define LC_DYLD_INFO_ONLY (0x22|LC_REQ_DYLD) /* compressed dyld information only */
#define LC_LOAD_UPWARD_DYLIB (0x23 | LC_REQ_DYLD) /* load upward dylib */

View File

@ -434,6 +434,8 @@ static int init_items(struct MACH0_(obj_t)* bin) {
}
}
break;
case LC_ENCRYPTION_INFO_64:
/* TODO: the struct is probably different here */
case LC_ENCRYPTION_INFO:
{
struct encryption_info_command eic = {0};