Lines Matching defs:hdr
525 struct mach_header * hdr;
533 struct mach_header hdr;
543 hdr = entry->linked_image;
544 ncmds = hdr->ncmds;
545 seg = (struct segment_command *)(hdr + 1);
570 cmd->hdr = *hdr;
572 bcopy((const void *) (((vm_offset_t) hdr) + symcmd->symoff),
576 hdr = (struct mach_header *) mem;
577 cmd->hdr.ncmds = 2;
578 cmd->hdr.sizeofcmds = sizeof(struct load_cmds) - sizeof(struct mach_header);
579 cmd->hdr.flags &= ~MH_INCRLINK;
631 kload_error __kload_make_opaque_basefile(dgraph_t * dgraph, struct mach_header * hdr)
656 ncmds = hdr->ncmds;
657 seg = (struct segment_command *)(hdr + 1);
679 bcopy(hdr, (void *) out, sizeof(struct mach_header));
680 hdr = (struct mach_header *) out;
691 hdr->ncmds = 2;
692 hdr->sizeofcmds = text_seg->cmdsize + data_seg->cmdsize;
694 offset = hdr->sizeofcmds;