Lines Matching refs:hdr
119 const char *hdr = input->mb.getBufferStart(); in getPlatformInfos() local
123 for (auto *cmd : findCommands<build_version_command>(hdr, LC_BUILD_VERSION)) { in getPlatformInfos()
130 hdr, LC_VERSION_MIN_MACOSX, LC_VERSION_MIN_IPHONEOS, in getPlatformInfos()
211 const auto *hdr = reinterpret_cast<const fat_header *>(buf); in readFile() local
213 read32be(&hdr->magic) != FAT_MAGIC) { in readFile()
224 const auto *arch = reinterpret_cast<const fat_arch *>(buf + sizeof(*hdr)); in readFile()
226 for (uint32_t i = 0, n = read32be(&hdr->nfat_arch); i < n; ++i) { in readFile()
1068 auto *hdr = reinterpret_cast<const Header *>(mb.getBufferStart()); in parse() local
1070 Architecture arch = getArchitectureFromCpuType(hdr->cputype, hdr->cpusubtype); in parse()
1084 for (auto *cmd : findCommands<linker_option_command>(hdr, LC_LINKER_OPTION)) { in parse()
1091 if (const load_command *cmd = findCommand(hdr, LP::segmentLCType)) { in parse()
1099 if (const load_command *cmd = findCommand(hdr, LC_SYMTAB)) { in parse()
1104 bool subsectionsViaSymbols = hdr->flags & MH_SUBSECTIONS_VIA_SYMBOLS; in parse()
1116 hdr, LC_LINKER_OPTIMIZATION_HINT)) in parse()
1142 auto *hdr = reinterpret_cast<const Header *>(mb.getBufferStart()); in parseLazy() local
1143 const load_command *cmd = findCommand(hdr, LC_SYMTAB); in parseLazy()
1759 auto *hdr = reinterpret_cast<const mach_header *>(mb.getBufferStart()); in DylibFile() local
1762 if (const load_command *cmd = findCommand(hdr, LC_ID_DYLIB)) { in DylibFile()
1779 deadStrippable = hdr->flags & MH_DEAD_STRIPPABLE_DYLIB; in DylibFile()
1784 checkAppExtensionSafety(hdr->flags & MH_APP_EXTENSION_SAFE); in DylibFile()
1786 for (auto *cmd : findCommands<rpath_command>(hdr, LC_RPATH)) { in DylibFile()
1794 const auto *dyldInfo = findCommand<dyld_info_command>(hdr, LC_DYLD_INFO_ONLY); in DylibFile()
1796 findCommand<linkedit_data_command>(hdr, LC_DYLD_EXPORTS_TRIE); in DylibFile()
1844 auto *hdr = reinterpret_cast<const mach_header *>(mb.getBufferStart()); in parseLoadCommands() local
1847 for (uint32_t i = 0, n = hdr->ncmds; i < n; ++i) { in parseLoadCommands()
1851 if (!(hdr->flags & MH_NO_REEXPORTED_DYLIBS) && in parseLoadCommands()