Lines Matching refs:mach_header
29 * File: kern/mach_header.c
46 * Made into machine independent form from machdep/m68k/mach_header.c.
52 #include <mach-o/mach_header.h>
57 extern struct mach_header _mh_execute_header;
72 struct mach_header *header = &_mh_execute_header;
76 ((char *)header + sizeof(struct mach_header));
93 struct mach_header **
96 struct mach_header **tl;
98 if (kmem_alloc(kernel_map, (vm_offset_t *) &tl, 2*sizeof(struct mach_header *)) != KERN_SUCCESS)
102 tl[1] = (struct mach_header *)0;
119 struct mach_header *mhp,
148 struct mach_header *mhp,
167 * named segment for the mach_header pointer passed to it if it exist.
177 struct mach_header *mhp,
186 ((char *)mhp + sizeof(struct mach_header));
216 struct mach_header *header,
223 ((char *)header + sizeof(struct mach_header));
277 static struct fvmfile_command *fvmfilefromheader(struct mach_header *header);
278 static vm_offset_t getsizeofmacho(struct mach_header *header);
296 firstsegfromheader(struct mach_header *header)
302 ((char *)header + sizeof(struct mach_header));
347 struct mach_header *header,
354 ((char *)header + sizeof(struct mach_header));
414 (struct mach_header *)&_mh_execute_header, segname, sectname));
461 fvmfilefromheader(struct mach_header *header)
467 ((char *)header + sizeof(struct mach_header));
502 sgp->vmsize = getsizeofmacho((struct mach_header *)(sgp->vmaddr));
517 * loaded mach_header.
522 getsizeofmacho(struct mach_header *header)
542 * named segment for the mach_header pointer passed to it if it exist.
547 struct mach_header *mhp)
553 ((char *)mhp + sizeof(struct mach_header));
562 boolean_t getsymtab(struct mach_header *header,
607 void * getsegdatafromheader( struct mach_header *mhp, char *segname, int *size)