Home
last modified time | relevance | path

Searched refs:seg_hdr (Results 1 – 2 of 2) sorted by relevance

/xnu-12377.41.6/libkern/kxld/
H A Dkxld_util.c292 struct segment_command *seg_hdr = NULL; in validate_and_swap_macho_32() local
362 seg_hdr = (struct segment_command *) load_hdr; in validate_and_swap_macho_32()
365 swap_segment_command(seg_hdr, host_order); in validate_and_swap_macho_32()
370 sects = (struct section *) &seg_hdr[1]; in validate_and_swap_macho_32()
373 swap_section(sects, seg_hdr->nsects, host_order); in validate_and_swap_macho_32()
378 if (!seg_hdr->vmsize) { in validate_and_swap_macho_32()
383 require_action(size >= seg_hdr->fileoff + seg_hdr->filesize, finish, in validate_and_swap_macho_32()
387 for (j = 0; j < seg_hdr->nsects; ++j) { in validate_and_swap_macho_32()
473 struct segment_command_64 *seg_hdr = NULL; in validate_and_swap_macho_64() local
542 seg_hdr = (struct segment_command_64 *) ((void *) load_hdr); in validate_and_swap_macho_64()
[all …]
H A Dkxld_object.c620 struct segment_command *seg_hdr = in init_from_final_linked_image() local
624 if (!seg_hdr->vmsize) { in init_from_final_linked_image()
629 nsects += seg_hdr->nsects; in init_from_final_linked_image()
636 struct segment_command_64 *seg_hdr = in init_from_final_linked_image() local
640 if (!seg_hdr->vmsize) { in init_from_final_linked_image()
645 nsects += seg_hdr->nsects; in init_from_final_linked_image()
675 struct segment_command *seg_hdr = in init_from_final_linked_image() local
679 if (!seg_hdr->vmsize) { in init_from_final_linked_image()
685 rval = kxld_seg_init_from_macho_32(seg, seg_hdr); in init_from_final_linked_image()
688 sect_offset = offset + sizeof(*seg_hdr); in init_from_final_linked_image()
[all …]