Searched refs:mach_hdr (Results 1 - 2 of 2) sorted by relevance

/darwin-on-arm/xnu/libkern/kxld/
H A Dkxld_util.c274 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 Dkxld_object.c257 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;
420 struct mach_header *mach_hdr = NULL; local
491 mach_hdr = (struct mach_header *) ((void *) object->file);
492 require_action(object->cputype == mach_hdr->cputype, finish,
1022 struct mach_header *mach_hdr = (struct mach_header *) ((void *) (file + offset)); local
1024 if (filetype) *filetype = mach_hdr->filetype;
1025 if (ncmds) *ncmds = mach_hdr
1038 struct mach_header_64 *mach_hdr = (struct mach_header_64 *) ((void *) (file + offset)); local
[all...]

Completed in 76 milliseconds