Lines Matching defs:hdr
120 const char *hdr = input->mb.getBufferStart();
124 for (auto *cmd : findCommands<build_version_command>(hdr, LC_BUILD_VERSION)) {
131 hdr, LC_VERSION_MIN_MACOSX, LC_VERSION_MIN_IPHONEOS,
189 static bool compatWithTargetArch(const InputFile *file, const Header *hdr) {
193 if (hdr->cputype != cpuType) {
195 getArchitectureFromCpuType(hdr->cputype, hdr->cpusubtype);
234 const auto *hdr = reinterpret_cast<const fat_header *>(buf);
236 read32be(&hdr->magic) != FAT_MAGIC) {
247 const auto *arch = reinterpret_cast<const fat_arch *>(buf + sizeof(*hdr));
253 for (uint32_t i = 0, n = read32be(&hdr->nfat_arch); i < n; ++i) {
956 auto *hdr = reinterpret_cast<const Header *>(mb.getBufferStart());
958 for (auto *cmd : findCommands<linker_option_command>(hdr, LC_LINKER_OPTION)) {
993 auto *hdr = reinterpret_cast<const Header *>(mb.getBufferStart());
998 if (!(compatArch = compatWithTargetArch(this, hdr)))
1008 if (const load_command *cmd = findCommand(hdr, LP::segmentLCType)) {
1016 if (const load_command *cmd = findCommand(hdr, LC_SYMTAB)) {
1021 bool subsectionsViaSymbols = hdr->flags & MH_SUBSECTIONS_VIA_SYMBOLS;
1054 auto *hdr = reinterpret_cast<const Header *>(mb.getBufferStart());
1058 if (!(compatArch = compatWithTargetArch(this, hdr)))
1061 const load_command *cmd = findCommand(hdr, LC_SYMTAB);
1695 auto *hdr = reinterpret_cast<const mach_header *>(mb.getBufferStart());
1698 if (const load_command *cmd = findCommand(hdr, LC_ID_DYLIB)) {
1715 deadStrippable = hdr->flags & MH_DEAD_STRIPPABLE_DYLIB;
1720 checkAppExtensionSafety(hdr->flags & MH_APP_EXTENSION_SAFE);
1722 for (auto *cmd : findCommands<rpath_command>(hdr, LC_RPATH)) {
1728 bool canBeImplicitlyLinked = findCommand(hdr, LC_SUB_CLIENT) == nullptr;
1734 for (auto *cmd : findCommands<sub_client_command>(hdr, LC_SUB_CLIENT)) {
1741 const auto *dyldInfo = findCommand<dyld_info_command>(hdr, LC_DYLD_INFO_ONLY);
1743 findCommand<linkedit_data_command>(hdr, LC_DYLD_EXPORTS_TRIE);
1792 auto *hdr = reinterpret_cast<const mach_header *>(mb.getBufferStart());
1795 for (uint32_t i = 0, n = hdr->ncmds; i < n; ++i) {
1799 if (!(hdr->flags & MH_NO_REEXPORTED_DYLIBS) &&