Lines Matching refs:MachO

65   case MachO::LCName:                                                          \
67 sizeof(MachO::LCStruct)); \
69 MachO::swapStruct(LC.Data.LCStruct##_data); \
71 processLoadCommandData<MachO::LCStruct>(LC, LoadCmd, *Y.get())) \
93 if (!MachO::isVirtualSection(Sec.flags & MachO::SECTION_TYPE)) in constructSectionCommon()
101 const MachO::any_relocation_info RE = Obj.getRelocation(Rel); in constructSectionCommon()
121 Expected<MachOYAML::Section> MachODumper::constructSection(MachO::section Sec, in constructSection()
131 MachODumper::constructSection(MachO::section_64 Sec, size_t SecIndex) { in constructSection()
178 MachO::swapStruct(Sec); in extractSections()
215 MachODumper::processLoadCommandData<MachO::segment_command>( in processLoadCommandData()
219 return extractSections<MachO::section, MachO::segment_command>( in processLoadCommandData()
225 MachODumper::processLoadCommandData<MachO::segment_command_64>( in processLoadCommandData()
229 return extractSections<MachO::section_64, MachO::segment_command_64>( in processLoadCommandData()
246 MachODumper::processLoadCommandData<MachO::dylib_command>( in processLoadCommandData()
250 return readString<MachO::dylib_command>(LC, LoadCmd); in processLoadCommandData()
255 MachODumper::processLoadCommandData<MachO::dylinker_command>( in processLoadCommandData()
259 return readString<MachO::dylinker_command>(LC, LoadCmd); in processLoadCommandData()
264 MachODumper::processLoadCommandData<MachO::rpath_command>( in processLoadCommandData()
268 return readString<MachO::rpath_command>(LC, LoadCmd); in processLoadCommandData()
273 MachODumper::processLoadCommandData<MachO::build_version_command>( in processLoadCommandData()
277 auto Start = LoadCmd.Ptr + sizeof(MachO::build_version_command); in processLoadCommandData()
280 auto Curr = Start + i * sizeof(MachO::build_tool_version); in processLoadCommandData()
281 MachO::build_tool_version BV; in processLoadCommandData()
282 memcpy((void *)&BV, Curr, sizeof(MachO::build_tool_version)); in processLoadCommandData()
284 MachO::swapStruct(BV); in processLoadCommandData()
287 return Start + NTools * sizeof(MachO::build_tool_version); in processLoadCommandData()
323 sizeof(MachO::load_command)); in dumpLoadCommands()
325 MachO::swapStruct(LC.Data.load_command_data); in dumpLoadCommands()
327 processLoadCommandData<MachO::load_command>(LC, LoadCmd, in dumpLoadCommands()
377 static_cast<MachO::RebaseOpcode>(*OpCode & MachO::REBASE_OPCODE_MASK); in dumpRebaseOpcodes()
378 RebaseOp.Imm = *OpCode & MachO::REBASE_IMMEDIATE_MASK; in dumpRebaseOpcodes()
384 case MachO::REBASE_OPCODE_DO_REBASE_ULEB_TIMES_SKIPPING_ULEB: in dumpRebaseOpcodes()
391 case MachO::REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB: in dumpRebaseOpcodes()
392 case MachO::REBASE_OPCODE_ADD_ADDR_ULEB: in dumpRebaseOpcodes()
393 case MachO::REBASE_OPCODE_DO_REBASE_ULEB_TIMES: in dumpRebaseOpcodes()
394 case MachO::REBASE_OPCODE_DO_REBASE_ADD_ADDR_ULEB: in dumpRebaseOpcodes()
406 if (RebaseOp.Opcode == MachO::REBASE_OPCODE_DONE) in dumpRebaseOpcodes()
425 static_cast<MachO::BindOpcode>(*OpCode & MachO::BIND_OPCODE_MASK); in dumpBindOpcodes()
426 BindOp.Imm = *OpCode & MachO::BIND_IMMEDIATE_MASK; in dumpBindOpcodes()
433 case MachO::BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB: in dumpBindOpcodes()
440 case MachO::BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB: in dumpBindOpcodes()
441 case MachO::BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB: in dumpBindOpcodes()
442 case MachO::BIND_OPCODE_ADD_ADDR_ULEB: in dumpBindOpcodes()
443 case MachO::BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB: in dumpBindOpcodes()
449 case MachO::BIND_OPCODE_SET_ADDEND_SLEB: in dumpBindOpcodes()
455 case MachO::BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM: in dumpBindOpcodes()
467 if (!Lazy && BindOp.Opcode == MachO::BIND_OPCODE_DONE) in dumpBindOpcodes()
544 if (Entry.Flags & MachO::EXPORT_SYMBOL_FLAGS_REEXPORT) { in processExportNode()
552 if (Entry.Flags & MachO::EXPORT_SYMBOL_FLAGS_STUB_AND_RESOLVER) { in processExportNode()
600 ? constructNameList<MachO::nlist_64>( in dumpSymbols()
602 : constructNameList<MachO::nlist>( in dumpSymbols()
618 MachO::dysymtab_command DLC = Obj.getDysymtabLoadCommand(); in dumpIndirectSymbols()
632 YAMLFile.MachO = std::move(YAML.get()); in macho2yaml()