Lines Matching refs:MachO
50 Section constructSection(const MachO::section &Sec, uint32_t Index) { in constructSection()
54 Section constructSection(const MachO::section_64 &Sec, uint32_t Index) { in constructSection()
75 MachO::swapStruct(Sec); in extractSections()
106 R.IsAddend = !R.Scattered && (CPUType == MachO::CPU_TYPE_ARM64 && in extractSections()
107 Type == MachO::ARM64_RELOC_ADDEND); in extractSections()
125 case MachO::LC_CODE_SIGNATURE: in readLoadCommands()
128 case MachO::LC_SEGMENT: in readLoadCommands()
133 LoadCmd.Ptr + offsetof(MachO::segment_command, segname))) == in readLoadCommands()
138 extractSections<MachO::section, MachO::segment_command>( in readLoadCommands()
144 case MachO::LC_SEGMENT_64: in readLoadCommands()
149 LoadCmd.Ptr + offsetof(MachO::segment_command_64, segname))) == in readLoadCommands()
154 extractSections<MachO::section_64, MachO::segment_command_64>( in readLoadCommands()
160 case MachO::LC_SYMTAB: in readLoadCommands()
163 case MachO::LC_DYSYMTAB: in readLoadCommands()
166 case MachO::LC_DYLD_INFO: in readLoadCommands()
167 case MachO::LC_DYLD_INFO_ONLY: in readLoadCommands()
170 case MachO::LC_DATA_IN_CODE: in readLoadCommands()
173 case MachO::LC_LINKER_OPTIMIZATION_HINT: in readLoadCommands()
176 case MachO::LC_FUNCTION_STARTS: in readLoadCommands()
179 case MachO::LC_DYLIB_CODE_SIGN_DRS: in readLoadCommands()
182 case MachO::LC_DYLD_EXPORTS_TRIE: in readLoadCommands()
185 case MachO::LC_DYLD_CHAINED_FIXUPS: in readLoadCommands()
190 case MachO::LCName: \ in readLoadCommands()
192 sizeof(MachO::LCStruct)); \ in readLoadCommands()
194 MachO::swapStruct(LC.MachOLoadCommand.LCStruct##_data); \ in readLoadCommands()
195 if (LoadCmd.C.cmdsize > sizeof(MachO::LCStruct)) \ in readLoadCommands()
198 sizeof(MachO::LCStruct), \ in readLoadCommands()
199 LoadCmd.C.cmdsize - sizeof(MachO::LCStruct)); \ in readLoadCommands()
205 sizeof(MachO::load_command)); in readLoadCommands()
207 MachO::swapStruct(LC.MachOLoadCommand.load_command_data); in readLoadCommands()
208 if (LoadCmd.C.cmdsize > sizeof(MachO::load_command)) in readLoadCommands()
211 sizeof(MachO::load_command), in readLoadCommands()
212 LoadCmd.C.cmdsize - sizeof(MachO::load_command)); in readLoadCommands()
300 const MachO::linkedit_data_command &LC = in readLinkData()
332 MachO::dysymtab_command DySymTab = MachOObj.getDysymtabLoadCommand(); in readIndirectSymbolTable()
334 MachO::INDIRECT_SYMBOL_LOCAL | MachO::INDIRECT_SYMBOL_ABS; in readIndirectSymbolTable()