• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/xnu-2782.1.97/bsd/kern/

Lines Matching refs:header

92 /* XXX should have prototypes in a shared header file */
127 struct mach_header *header,
290 struct mach_header *header,
361 if ( !cs_enforcement(NULL) && (header->flags & MH_ALLOW_STACK_EXECUTION) )
367 if ((header->flags & MH_NO_HEAP_EXECUTION) && !(imgp->ip_flags & IMGPF_ALLOW_DATA_EXEC))
392 lret = parse_machfile(vp, map, thread, header, file_offset, macho_size,
489 struct mach_header *header,
518 if (header->magic == MH_MAGIC_64 ||
519 header->magic == MH_CIGAM_64) {
535 if (((cpu_type_t)(header->cputype & ~CPU_ARCH_MASK) != (cpu_type() & ~CPU_ARCH_MASK)) ||
536 !grade_binary(header->cputype,
537 header->cpusubtype & ~CPU_SUBTYPE_MASK))
540 abi64 = ((header->cputype & CPU_ARCH_ABI64) == CPU_ARCH_ABI64);
542 switch (header->filetype) {
578 if ((off_t)(mach_header_sz + header->sizeofcmds) > macho_size)
584 size = round_page(mach_header_sz + header->sizeofcmds);
609 if ((header->flags & MH_PIE) || (header->filetype == MH_DYLINKER)) {
634 * Mach-O header; if an absurd value is provided, we just
639 ncmds = header->ncmds;
659 offset > header->sizeofcmds + mach_header_sz) {
683 header->filetype,
706 header->filetype,
740 dlarchbits = (header->cputype & CPU_ARCH_MASK);
748 (char *)addr + mach_header_sz + header->sizeofcmds,
765 header->cputype,
784 header->cputype, header->cpusubtype);
1141 * - The UUID part of the command should be completely within the mach-o header
1432 struct mach_header *header;
1460 header = &dyld_data->__header;
1464 ret = get_macho_vnode(name, archbits, header,
1477 ret = parse_machfile(vp, map, thread, header, file_offset,
1498 ret = parse_machfile(vp, VM_MAP_NULL, THREAD_NULL, header,
1534 ret = parse_machfile(vp, map, thread, header,
1739 struct mach_header *header = (struct mach_header *)addr;
1741 if (header->magic == MH_MAGIC_64 ||
1742 header->magic == MH_CIGAM_64) {
1746 uint32_t ncmds = header->ncmds;
1820 union macho_vnode_header *header = &data->__header;
1877 if ((error = vn_rdwr(UIO_READ, vp, (caddr_t)header, sizeof (*header), 0,
1883 if (header->mach_header.magic == MH_MAGIC ||
1884 header->mach_header.magic == MH_MAGIC_64) {
1886 } else if (header->fat_header.magic == FAT_MAGIC ||
1887 header->fat_header.magic == FAT_CIGAM) {
1897 (vm_offset_t)(&header->fat_header), &fat_arch);
1901 /* Read the Mach-O header out of it */
1902 error = vn_rdwr(UIO_READ, vp, (caddr_t)&header->mach_header,
1903 sizeof (header->mach_header), fat_arch.offset,
1911 if (header->mach_header.magic != MH_MAGIC &&
1912 header->mach_header.magic != MH_MAGIC_64) {
1930 if ((cpu_type_t)(header->mach_header.cputype & CPU_ARCH_MASK) != archbits) {
1939 *mach_header = header->mach_header;