Lines Matching defs:seg_hdr
276 struct segment_command *seg_hdr = NULL;
347 seg_hdr = (struct segment_command *) load_hdr;
349 if (swap) swap_segment_command(seg_hdr, host_order);
353 sects = (struct section *) &seg_hdr[1];
355 if (swap) swap_section(sects, seg_hdr->nsects, host_order);
359 if (!seg_hdr->vmsize) continue;
362 require_action(size >= seg_hdr->fileoff + seg_hdr->filesize, finish,
366 for (j = 0; j < seg_hdr->nsects; ++j) {
447 struct segment_command_64 *seg_hdr = NULL;
516 seg_hdr = (struct segment_command_64 *) ((void *) load_hdr);
518 if (swap) swap_segment_command_64(seg_hdr, host_order);
522 sects = (struct section_64 *) &seg_hdr[1];
524 if (swap) swap_section_64(sects, seg_hdr->nsects, host_order);
528 if (!seg_hdr->vmsize) continue;
531 require_action(size >= seg_hdr->fileoff + seg_hdr->filesize, finish,
535 for (j = 0; j < seg_hdr->nsects; ++j) {
629 struct segment_command *seg_hdr = NULL;
650 seg_hdr = (struct segment_command *) load_hdr;
651 sects = (struct section *) &seg_hdr[1];
657 swap_section(sects, seg_hdr->nsects, target_order);
658 swap_segment_command(seg_hdr, target_order);
685 struct segment_command_64 *seg_hdr = NULL;
706 seg_hdr = (struct segment_command_64 *) ((void *) load_hdr);
707 sects = (struct section_64 *) &seg_hdr[1];
713 swap_section_64(sects, seg_hdr->nsects, target_order);
714 swap_segment_command_64(seg_hdr, target_order);