Searched refs:mach_hdr (Results 1 - 4 of 4) sorted by relevance
/macosx-10.9.5/xnu-2422.115.4/libkern/kxld/ |
H A D | kxld_util.c | 274 struct mach_header *mach_hdr = (struct mach_header *) ((void *) file); local 294 require_action(size >= sizeof(*mach_hdr), finish, 297 offset = sizeof(*mach_hdr); 301 if (mach_hdr->magic == MH_CIGAM) { 303 (void) swap_mach_header(mach_hdr, host_order); 308 require_action(mach_hdr->magic == MH_MAGIC, finish, 311 "Invalid magic number: 0x%x.", mach_hdr->magic)); 318 if (mach_hdr->filetype == MH_EXECUTE) { 325 for(i = 0; i < mach_hdr->ncmds; ++i, offset += cmdsize) { 445 struct mach_header_64 *mach_hdr local 627 struct mach_header *mach_hdr = (struct mach_header *) ((void *) file); local 683 struct mach_header_64 *mach_hdr = (struct mach_header_64 *) ((void *) file); local [all...] |
H A D | kxld_object.c | 257 struct mach_header *mach_hdr = (struct mach_header *) ((void *) object->file); local 258 object->filetype = mach_hdr->filetype; 260 struct mach_header_64 *mach_hdr = (struct mach_header_64 *) ((void *) object->file); local 261 object->filetype = mach_hdr->filetype; 413 struct mach_header *mach_hdr = NULL; local 484 mach_hdr = (struct mach_header *) ((void *) object->file); 485 require_action(object->cputype == mach_hdr->cputype, finish, 1017 struct mach_header *mach_hdr = (struct mach_header *) ((void *) (file + offset)); local 1019 if (filetype) *filetype = mach_hdr->filetype; 1020 if (ncmds) *ncmds = mach_hdr 1033 struct mach_header_64 *mach_hdr = (struct mach_header_64 *) ((void *) (file + offset)); local [all...] |
/macosx-10.9.5/IOKitUser-907.100.13/kext.subproj/ |
H A D | macho_util.c | 1040 struct mach_header *mach_hdr; local 1049 mach_hdr = (struct mach_header *) macho; 1054 if (mach_hdr->magic == MH_MAGIC) { 1055 src = dst = macho + sizeof(*mach_hdr); 1056 ncmds = mach_hdr->ncmds; 1057 } else if (mach_hdr->magic == MH_MAGIC_64) { 1096 if (mach_hdr->magic == MH_MAGIC) { 1097 mach_hdr->ncmds--; 1098 mach_hdr->sizeofcmds -= cmdsize; 1125 struct mach_header *mach_hdr; local [all...] |
H A D | fat_util.c | 360 struct mach_header * mach_hdr; local 369 mach_hdr = (struct mach_header *)iter->file_start; 370 fat_arches[0].cputype = CondSwapInt32(swap, mach_hdr->cputype); 371 fat_arches[0].cpusubtype = CondSwapInt32(swap, mach_hdr->cpusubtype);
|
Completed in 84 milliseconds