Lines Matching refs:MachO
49 Section constructSection(const MachO::section &Sec, uint32_t Index) { in constructSection()
53 Section constructSection(const MachO::section_64 &Sec, uint32_t Index) { in constructSection()
73 MachO::swapStruct(Sec); in extractSections()
104 R.IsAddend = !R.Scattered && (CPUType == MachO::CPU_TYPE_ARM64 && in extractSections()
105 Type == MachO::ARM64_RELOC_ADDEND); in extractSections()
123 case MachO::LC_CODE_SIGNATURE: in readLoadCommands()
126 case MachO::LC_SEGMENT: in readLoadCommands()
131 LoadCmd.Ptr + offsetof(MachO::segment_command, segname))) == in readLoadCommands()
136 extractSections<MachO::section, MachO::segment_command>( in readLoadCommands()
142 case MachO::LC_SEGMENT_64: in readLoadCommands()
147 LoadCmd.Ptr + offsetof(MachO::segment_command_64, segname))) == in readLoadCommands()
152 extractSections<MachO::section_64, MachO::segment_command_64>( in readLoadCommands()
158 case MachO::LC_SYMTAB: in readLoadCommands()
161 case MachO::LC_DYSYMTAB: in readLoadCommands()
164 case MachO::LC_DYLD_INFO: in readLoadCommands()
165 case MachO::LC_DYLD_INFO_ONLY: in readLoadCommands()
168 case MachO::LC_DATA_IN_CODE: in readLoadCommands()
171 case MachO::LC_LINKER_OPTIMIZATION_HINT: in readLoadCommands()
174 case MachO::LC_FUNCTION_STARTS: in readLoadCommands()
177 case MachO::LC_DYLD_EXPORTS_TRIE: in readLoadCommands()
180 case MachO::LC_DYLD_CHAINED_FIXUPS: in readLoadCommands()
185 case MachO::LCName: \ in readLoadCommands()
187 sizeof(MachO::LCStruct)); \ in readLoadCommands()
189 MachO::swapStruct(LC.MachOLoadCommand.LCStruct##_data); \ in readLoadCommands()
190 if (LoadCmd.C.cmdsize > sizeof(MachO::LCStruct)) \ in readLoadCommands()
193 sizeof(MachO::LCStruct), \ in readLoadCommands()
194 LoadCmd.C.cmdsize - sizeof(MachO::LCStruct)); \ in readLoadCommands()
200 sizeof(MachO::load_command)); in readLoadCommands()
202 MachO::swapStruct(LC.MachOLoadCommand.load_command_data); in readLoadCommands()
203 if (LoadCmd.C.cmdsize > sizeof(MachO::load_command)) in readLoadCommands()
206 sizeof(MachO::load_command), in readLoadCommands()
207 LoadCmd.C.cmdsize - sizeof(MachO::load_command)); in readLoadCommands()
291 const MachO::linkedit_data_command &LC = in readLinkData()
319 MachO::dysymtab_command DySymTab = MachOObj.getDysymtabLoadCommand(); in readIndirectSymbolTable()
321 MachO::INDIRECT_SYMBOL_LOCAL | MachO::INDIRECT_SYMBOL_ABS; in readIndirectSymbolTable()