Lines Matching refs:mach_header
29 * File: kern/mach_header.c
46 * Made into machine independent form from machdep/m68k/mach_header.c.
51 #include <kern/mach_header.h>
57 extern struct mach_header _mh_execute_header;
69 struct mach_header *header = &_mh_execute_header;
73 ((char *)header + sizeof(struct mach_header));
88 struct mach_header **
91 struct mach_header **tl;
92 tl = (struct mach_header **)malloc(2*sizeof(struct mach_header *));
94 tl[1] = (struct mach_header *)0;
109 struct mach_header *mhp,
137 struct mach_header *mhp,
156 * named segment for the mach_header pointer passed to it if it exist.
163 struct mach_header *mhp,
172 ((char *)mhp + sizeof(struct mach_header));
199 struct mach_header *header,
206 ((char *)header + sizeof(struct mach_header));
257 static struct fvmfile_command *fvmfilefromheader(struct mach_header *header);
258 static vm_offset_t getsizeofmacho(struct mach_header *header);
277 firstsegfromheader(struct mach_header *header)
283 ((char *)header + sizeof(struct mach_header));
322 struct mach_header *header,
329 ((char *)header + sizeof(struct mach_header));
383 (struct mach_header *)&_mh_execute_header, segname, sectname));
424 fvmfilefromheader(struct mach_header *header)
430 ((char *)header + sizeof(struct mach_header));
462 sgp->vmsize = getsizeofmacho((struct mach_header *)(sgp->vmaddr));
478 * loaded mach_header.
483 getsizeofmacho(struct mach_header *header)