Lines Matching refs:cmd_hdr
581 struct load_command *cmd_hdr = NULL; in init_from_final_linked_image() local
613 for (i = 0; i < ncmds; ++i, offset += cmd_hdr->cmdsize) { in init_from_final_linked_image()
614 cmd_hdr = (struct load_command *) ((void *) (my_file + offset)); in init_from_final_linked_image()
616 switch (cmd_hdr->cmd) { in init_from_final_linked_image()
621 (struct segment_command *) cmd_hdr; in init_from_final_linked_image()
637 (struct segment_command_64 *) ((void *) cmd_hdr); in init_from_final_linked_image()
667 for (i = 0; i < ncmds; ++i, offset += cmd_hdr->cmdsize) { in init_from_final_linked_image()
668 cmd_hdr = (struct load_command *) ((void *) (my_file + offset)); in init_from_final_linked_image()
671 switch (cmd_hdr->cmd) { in init_from_final_linked_image()
676 (struct segment_command *) cmd_hdr; in init_from_final_linked_image()
696 (struct segment_command_64 *) ((void *) cmd_hdr); in init_from_final_linked_image()
713 symtab_hdr = (struct symtab_command *) cmd_hdr; in init_from_final_linked_image()
716 uuid_hdr = (struct uuid_command *) cmd_hdr; in init_from_final_linked_image()
723 versionmin_hdr = (struct version_min_command *) cmd_hdr; in init_from_final_linked_image()
727 build_version_hdr = (struct build_version_command *)cmd_hdr; in init_from_final_linked_image()
731 source_version_hdr = (struct source_version_command *) (void *) cmd_hdr; in init_from_final_linked_image()
735 object->dysymtab_hdr = (struct dysymtab_command *) cmd_hdr; in init_from_final_linked_image()
758 split_info_hdr = (struct linkedit_data_command *) (void *) cmd_hdr; in init_from_final_linked_image()
776 "Invalid load command type in MH_KEXT_BUNDLE kext: %u.", cmd_hdr->cmd); in init_from_final_linked_image()
958 struct load_command *cmd_hdr = NULL; in init_from_object() local
996 for (; i < ncmds; ++i, offset += cmd_hdr->cmdsize) { in init_from_object()
997 cmd_hdr = (struct load_command *) ((void *) (my_file + offset)); in init_from_object()
999 switch (cmd_hdr->cmd) { in init_from_object()
1004 (struct segment_command *) cmd_hdr; in init_from_object()
1034 (struct segment_command_64 *) ((void *) cmd_hdr); in init_from_object()
1061 symtab_hdr = (struct symtab_command *) cmd_hdr; in init_from_object()
1070 uuid_hdr = (struct uuid_command *) cmd_hdr; in init_from_object()
1092 cmd_hdr->cmd, ((struct build_version_command *)cmd_hdr)->platform); in init_from_object()
1103 "Invalid load command type in MH_OBJECT kext: %u.", cmd_hdr->cmd); in init_from_object()