Home
last modified time | relevance | path

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

/xnu-10063.141.1/libkern/kxld/
H A Dkxld_util.c293 struct segment_command *seg_hdr = NULL; in validate_and_swap_macho_32() local
363 seg_hdr = (struct segment_command *) load_hdr; in validate_and_swap_macho_32()
366 swap_segment_command(seg_hdr, host_order); in validate_and_swap_macho_32()
371 sects = (struct section *) &seg_hdr[1]; in validate_and_swap_macho_32()
374 swap_section(sects, seg_hdr->nsects, host_order); in validate_and_swap_macho_32()
379 if (!seg_hdr->vmsize) { in validate_and_swap_macho_32()
384 require_action(size >= seg_hdr->fileoff + seg_hdr->filesize, finish, in validate_and_swap_macho_32()
388 for (j = 0; j < seg_hdr->nsects; ++j) { in validate_and_swap_macho_32()
474 struct segment_command_64 *seg_hdr = NULL; in validate_and_swap_macho_64() local
543 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 …]