Lines Matching defs:mh
243 static NSSymbol search_linked_libs(const struct mach_header *mh, const char *symbol);
244 static const char *get_lib_name(const struct mach_header *mh);
313 static const char *get_lib_name(const struct mach_header *mh)
318 if (mh)
322 if (mh == _dyld_get_image_header(i))
339 const struct mach_header *mh = NULL;
347 mh = _dyld_get_image_header(i);
351 return mh;
562 const struct mach_header *mh = 0;
566 mh = (struct mach_header *)
569 if (!mh)
576 mh = _dyld_get_image_header(j);
581 return mh;
590 static NSSymbol search_linked_libs(const struct mach_header * mh, const char *symbol)
598 lc = (struct load_command *)((char *)mh + sizeof(struct mach_header));
599 for (n = 0; n < mh->ncmds; n++, lc = (struct load_command *)((char *)lc + lc->cmdsize))
1194 const struct mach_header *mh = 0;
1200 mh = _dyld_get_image_header(i);
1201 if (mh)
1203 lc = (struct load_command *)((char *)mh + sizeof(struct mach_header));
1204 for (j = 0; j < mh->ncmds; j++, lc = (struct load_command *)((char *)lc + lc->cmdsize))
1215 mh = 0;
1218 return mh;
1230 struct mach_header *mh = 0;
1249 mh = _dyld_get_image_header(i);
1250 if (mh)
1252 lc = (struct load_command *)((char *)mh + sizeof(struct mach_header));
1253 for (j = 0; j < mh->ncmds; j++, lc = (struct load_command *)((char *)lc + lc->cmdsize))
1261 info->dli_fbase = (void *)mh;
1275 lc = (struct load_command *)((char *)mh + sizeof(struct mach_header));
1276 for (j = 0; j < mh->ncmds; j++, lc = (struct load_command *)((char *)lc + lc->cmdsize))
1289 lc = (struct load_command *)((char *)mh + sizeof(struct mach_header));
1290 for (j = 0; j < mh->ncmds; j++, lc = (struct load_command *)((char *)lc + lc->cmdsize))