Lines Matching refs:mach_header
55 #include <mach-o/mach_header.h>
733 (struct mach_header*) info->address, "__TEXT", "__text");
1279 extern struct mach_header _mh_execute_header;
1290 struct mach_header * orig_header = &_mh_execute_header;
1304 struct mach_header * header;
1389 header_size = sizeof(struct mach_header) +
1406 header = (struct mach_header *)buffer;
1412 header->sizeofcmds = header_size - sizeof(struct mach_header);
1638 struct mach_header * header = &_mh_execute_header;
1659 header = (struct mach_header *)kmod_info->address;
1792 kmod_call_funcs_in_section(struct mach_header *header, const char *sectName)
1819 return kmod_call_funcs_in_section((struct mach_header *)info->address, "__constructor");
1828 return kmod_call_funcs_in_section((struct mach_header *)info->address, "__destructor");