Lines Matching refs:MachO
44 case MachO::LCName: \
46 sizeof(MachO::LCStruct)); \
48 MachO::swapStruct(LC.Data.LCStruct##_data); \
49 EndPtr = processLoadCommandData<MachO::LCStruct>(LC, LoadCmd); \
73 template <> MachOYAML::Section constructSection(MachO::section Sec) { in constructSection()
79 template <> MachOYAML::Section constructSection(MachO::section_64 Sec) { in constructSection()
97 MachO::swapStruct(Sec); in extractSections()
114 const char *MachODumper::processLoadCommandData<MachO::segment_command>( in processLoadCommandData()
117 return extractSections<MachO::section, MachO::segment_command>( in processLoadCommandData()
122 const char *MachODumper::processLoadCommandData<MachO::segment_command_64>( in processLoadCommandData()
125 return extractSections<MachO::section_64, MachO::segment_command_64>( in processLoadCommandData()
141 const char *MachODumper::processLoadCommandData<MachO::dylib_command>( in processLoadCommandData()
144 return readString<MachO::dylib_command>(LC, LoadCmd); in processLoadCommandData()
148 const char *MachODumper::processLoadCommandData<MachO::dylinker_command>( in processLoadCommandData()
151 return readString<MachO::dylinker_command>(LC, LoadCmd); in processLoadCommandData()
155 const char *MachODumper::processLoadCommandData<MachO::rpath_command>( in processLoadCommandData()
158 return readString<MachO::rpath_command>(LC, LoadCmd); in processLoadCommandData()
187 sizeof(MachO::load_command)); in dumpLoadCommands()
189 MachO::swapStruct(LC.Data.load_command_data); in dumpLoadCommands()
190 EndPtr = processLoadCommandData<MachO::load_command>(LC, LoadCmd); in dumpLoadCommands()
225 static_cast<MachO::RebaseOpcode>(*OpCode & MachO::REBASE_OPCODE_MASK); in dumpRebaseOpcodes()
226 RebaseOp.Imm = *OpCode & MachO::REBASE_IMMEDIATE_MASK; in dumpRebaseOpcodes()
232 case MachO::REBASE_OPCODE_DO_REBASE_ULEB_TIMES_SKIPPING_ULEB: in dumpRebaseOpcodes()
238 case MachO::REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB: in dumpRebaseOpcodes()
239 case MachO::REBASE_OPCODE_ADD_ADDR_ULEB: in dumpRebaseOpcodes()
240 case MachO::REBASE_OPCODE_DO_REBASE_ULEB_TIMES: in dumpRebaseOpcodes()
241 case MachO::REBASE_OPCODE_DO_REBASE_ADD_ADDR_ULEB: in dumpRebaseOpcodes()
253 if (RebaseOp.Opcode == MachO::REBASE_OPCODE_DONE) in dumpRebaseOpcodes()
272 static_cast<MachO::BindOpcode>(*OpCode & MachO::BIND_OPCODE_MASK); in dumpBindOpcodes()
273 BindOp.Imm = *OpCode & MachO::BIND_IMMEDIATE_MASK; in dumpBindOpcodes()
280 case MachO::BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB: in dumpBindOpcodes()
286 case MachO::BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB: in dumpBindOpcodes()
287 case MachO::BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB: in dumpBindOpcodes()
288 case MachO::BIND_OPCODE_ADD_ADDR_ULEB: in dumpBindOpcodes()
289 case MachO::BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB: in dumpBindOpcodes()
295 case MachO::BIND_OPCODE_SET_ADDEND_SLEB: in dumpBindOpcodes()
301 case MachO::BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM: in dumpBindOpcodes()
313 if (!Lazy && BindOp.Opcode == MachO::BIND_OPCODE_DONE) in dumpBindOpcodes()
390 if (Entry.Flags & MachO::EXPORT_SYMBOL_FLAGS_REEXPORT) { in processExportNode()
398 if (Entry.Flags & MachO::EXPORT_SYMBOL_FLAGS_STUB_AND_RESOLVER) { in processExportNode()
445 Obj.is64Bit() ? constructNameList<MachO::nlist_64>( in dumpSymbols()
446 *reinterpret_cast<const MachO::nlist_64 *>( in dumpSymbols()
448 : constructNameList<MachO::nlist>( in dumpSymbols()
449 *reinterpret_cast<const MachO::nlist *>( in dumpSymbols()
471 YAMLFile.MachO = std::move(YAML.get()); in macho2yaml()