• Home
  • Raw
  • Download

Lines Matching full:sections

126 static void DumpAddress(uint64_t Address, ArrayRef<Section> Sections,  in DumpAddress()  argument
128 for (unsigned i = 0; i != Sections.size(); ++i) { in DumpAddress()
129 uint64_t addr = Address-Sections[i].Address; in DumpAddress()
130 if (Sections[i].Address <= Address && in DumpAddress()
131 Sections[i].Address + Sections[i].Size > Address) { in DumpAddress()
132 StringRef bytes = MachOObj->getData(Sections[i].Offset, in DumpAddress()
133 Sections[i].Size); in DumpAddress()
135 if (!strcmp(Sections[i].Name, "__cstring")) in DumpAddress()
138 if (!strcmp(Sections[i].Name, "__cfstring")) in DumpAddress()
217 std::vector<Section> &Sections, in getSectionsAndSymbols() argument
227 // Store the sections in this segment. in getSectionsAndSymbols()
231 Sections.push_back(copySection(Sect)); in getSectionsAndSymbols()
238 // Store the sections in this segment. in getSectionsAndSymbols()
243 Sections.push_back(copySection(Sect64)); in getSectionsAndSymbols()
325 std::vector<Section> Sections; in DisassembleInputMachO() local
329 getSectionsAndSymbols(Header, MachOObj.get(), &SymtabLC, Sections, Symbols, in DisassembleInputMachO()
350 ArrayRef<Section> DebugSections = Sections; in DisassembleInputMachO()
354 // get the sections and supply it to the section name parsing machinery. in DisassembleInputMachO()
372 // Find the named debug info sections. in DisassembleInputMachO()
403 for (unsigned SectIdx = 0; SectIdx != Sections.size(); SectIdx++) { in DisassembleInputMachO()
404 if (strcmp(Sections[SectIdx].Name, "__text")) in DisassembleInputMachO()
405 continue; // Skip non-text sections in DisassembleInputMachO()
408 uint64_t VMAddr = Sections[SectIdx].Address - Sections[SectIdx].Offset; in DisassembleInputMachO()
412 StringRef Bytes = MachOObj->getData(Sections[SectIdx].Offset, in DisassembleInputMachO()
413 Sections[SectIdx].Size); in DisassembleInputMachO()
419 for (unsigned j = 0; j != Sections[SectIdx].NumRelocs; ++j) { in DisassembleInputMachO()
421 MachOObj->ReadRelocationEntry(Sections[SectIdx].RelocTableOffset, j, RE); in DisassembleInputMachO()
433 uint64_t Start = Symbols[SymIdx].Value - Sections[SectIdx].Address; in DisassembleInputMachO()
438 Sections[SectIdx].Size : in DisassembleInputMachO()
439 Symbols[SymIdx+1].Value - Sections[SectIdx].Address; in DisassembleInputMachO()
457 outs() << format("%8llx:\t", Sections[SectIdx].Address + Index); in DisassembleInputMachO()
464 diContext->getLineInfoForAddress(Sections[SectIdx].Address + in DisassembleInputMachO()
492 0, Sections[SectIdx].Size, in DisassembleInputMachO()
494 Sections[SectIdx].Offset, DebugOut, in DisassembleInputMachO()
506 Sections[SectIdx].Size, in DisassembleInputMachO()
540 uint64_t End = llvm::next(fi) == fe ? Sections[SectIdx].Size : in DisassembleInputMachO()
544 outs() << format("%8x:\t", Sections[SectIdx].Address + pos); in DisassembleInputMachO()
561 if (FunctionMap.find(Sections[SectIdx].Address + Inst.Address) != in DisassembleInputMachO()
563 outs() << FunctionMap[Sections[SectIdx].Address + Inst.Address]-> in DisassembleInputMachO()
566 outs() << format("%8llx:\t", Sections[SectIdx].Address + in DisassembleInputMachO()
578 if (Relocs[j].first >= Sections[SectIdx].Address + Inst.Address && in DisassembleInputMachO()
579 Relocs[j].first < Sections[SectIdx].Address + Inst.Address + in DisassembleInputMachO()
585 DumpAddress(UnsortedSymbols[Relocs[j].second].Value, Sections, in DisassembleInputMachO()
595 DumpAddress(targ, Sections, MachOObj.get(), outs()); in DisassembleInputMachO()
600 diContext->getLineInfoForAddress(Sections[SectIdx].Address + in DisassembleInputMachO()