Lines Matching refs:cmd_hdr
576 struct load_command *cmd_hdr = NULL; in init_from_final_linked_image() local
608 for (i = 0; i < ncmds; ++i, offset += cmd_hdr->cmdsize) { in init_from_final_linked_image()
609 cmd_hdr = (struct load_command *) ((void *) (my_file + offset)); in init_from_final_linked_image()
611 switch (cmd_hdr->cmd) { in init_from_final_linked_image()
616 (struct segment_command *) cmd_hdr; in init_from_final_linked_image()
632 (struct segment_command_64 *) ((void *) cmd_hdr); in init_from_final_linked_image()
662 for (i = 0; i < ncmds; ++i, offset += cmd_hdr->cmdsize) { in init_from_final_linked_image()
663 cmd_hdr = (struct load_command *) ((void *) (my_file + offset)); in init_from_final_linked_image()
666 switch (cmd_hdr->cmd) { in init_from_final_linked_image()
671 (struct segment_command *) cmd_hdr; in init_from_final_linked_image()
691 (struct segment_command_64 *) ((void *) cmd_hdr); in init_from_final_linked_image()
708 symtab_hdr = (struct symtab_command *) cmd_hdr; in init_from_final_linked_image()
711 uuid_hdr = (struct uuid_command *) cmd_hdr; in init_from_final_linked_image()
718 versionmin_hdr = (struct version_min_command *) cmd_hdr; in init_from_final_linked_image()
722 build_version_hdr = (struct build_version_command *)cmd_hdr; in init_from_final_linked_image()
726 source_version_hdr = (struct source_version_command *) (void *) cmd_hdr; in init_from_final_linked_image()
730 object->dysymtab_hdr = (struct dysymtab_command *) cmd_hdr; in init_from_final_linked_image()
753 split_info_hdr = (struct linkedit_data_command *) (void *) cmd_hdr; in init_from_final_linked_image()
771 "Invalid load command type in MH_KEXT_BUNDLE kext: %u.", cmd_hdr->cmd); in init_from_final_linked_image()
953 struct load_command *cmd_hdr = NULL; in init_from_object() local
991 for (; i < ncmds; ++i, offset += cmd_hdr->cmdsize) { in init_from_object()
992 cmd_hdr = (struct load_command *) ((void *) (my_file + offset)); in init_from_object()
994 switch (cmd_hdr->cmd) { in init_from_object()
999 (struct segment_command *) cmd_hdr; in init_from_object()
1029 (struct segment_command_64 *) ((void *) cmd_hdr); in init_from_object()
1056 symtab_hdr = (struct symtab_command *) cmd_hdr; in init_from_object()
1065 uuid_hdr = (struct uuid_command *) cmd_hdr; in init_from_object()
1087 cmd_hdr->cmd, ((struct build_version_command *)cmd_hdr)->platform); in init_from_object()
1098 "Invalid load command type in MH_OBJECT kext: %u.", cmd_hdr->cmd); in init_from_object()