Lines Matching refs:mh
675 kld_macho_swap(struct mach_header * mh)
682 if (MH_CIGAM != mh->magic)
685 swap_mach_header(mh, hostOrder);
687 ncmds = mh->ncmds;
688 seg = (struct segment_command *)(mh + 1);
695 swap_nlist((struct nlist *) (((vm_offset_t) mh) + ((struct symtab_command *) seg)->symoff),
709 swap_relocation_info((struct relocation_info *) (((vm_offset_t) mh) + section->reloff),
719 kld_macho_unswap(struct mach_header * mh, Boolean didSwap, int symbols)
734 ncmds = mh->ncmds;
735 seg = (struct segment_command *)(mh + 1);
743 swap_nlist((struct nlist *) (((vm_offset_t) mh) + ((struct symtab_command *) seg)->symoff),
760 swap_relocation_info((struct relocation_info *) (((vm_offset_t) mh) + section->reloff),
767 swap_mach_header(mh, hostOrder);