Lines Matching refs:Section
148 for (const object::SectionRef &Section : Obj.sections()) { in mapVirtualAddress() local
150 Expected<StringRef> SectionNameOrErr = Section.getName(); in mapVirtualAddress()
156 dbgs() << "Index: " << format_decimal(Section.getIndex(), 3) << ", " in mapVirtualAddress()
157 << "Address: " << hexValue(Section.getAddress()) << ", " in mapVirtualAddress()
158 << "Size: " << hexValue(Section.getSize()) << ", " in mapVirtualAddress()
160 dbgs() << "isCompressed: " << Section.isCompressed() << ", " in mapVirtualAddress()
161 << "isText: " << Section.isText() << ", " in mapVirtualAddress()
162 << "isData: " << Section.isData() << ", " in mapVirtualAddress()
163 << "isBSS: " << Section.isBSS() << ", " in mapVirtualAddress()
164 << "isVirtual: " << Section.isVirtual() << "\n"; in mapVirtualAddress()
165 dbgs() << "isBitcode: " << Section.isBitcode() << ", " in mapVirtualAddress()
166 << "isStripped: " << Section.isStripped() << ", " in mapVirtualAddress()
167 << "isBerkeleyText: " << Section.isBerkeleyText() << ", " in mapVirtualAddress()
168 << "isBerkeleyData: " << Section.isBerkeleyData() << ", " in mapVirtualAddress()
169 << "isDebugSection: " << Section.isDebugSection() << "\n"; in mapVirtualAddress()
173 if (!Section.isText() || Section.isVirtual() || !Section.getSize()) in mapVirtualAddress()
178 Sections.emplace(Section.getIndex(), Section); in mapVirtualAddress()
179 addSectionAddress(Section); in mapVirtualAddress()
182 Expected<StringRef> SectionNameOrErr = Section.getName(); in mapVirtualAddress()
189 DotTextSectionIndex = Section.getIndex(); in mapVirtualAddress()
193 WasmCodeSectionOffset = Section.getAddress(); in mapVirtualAddress()
204 const object::SectionRef Section = Entry.second; in mapVirtualAddress()
205 Expected<StringRef> SectionNameOrErr = Section.getName(); in mapVirtualAddress()
210 << "Size: " << hexValue(Section.getSize()) << "\n" in mapVirtualAddress()
212 << "SectionAddress: " << hexValue(Section.getAddress()) << "\n"; in mapVirtualAddress()
233 for (const object::SectionRef &Section : COFFObj.sections()) { in mapVirtualAddress() local
234 if (!Section.isText() || Section.isVirtual() || !Section.getSize()) in mapVirtualAddress()
237 const object::coff_section *COFFSection = COFFObj.getCOFFSection(Section); in mapVirtualAddress()
243 Sections.emplace(Section.getIndex() + 1, Section); in mapVirtualAddress()
244 addSectionAddress(Section); in mapVirtualAddress()
247 mapRangeAddress(COFFObj, Section, IsComdat); in mapVirtualAddress()
254 const object::SectionRef Section = Entry.second; in mapVirtualAddress()
255 const object::coff_section *COFFSection = COFFObj.getCOFFSection(Section); in mapVirtualAddress()
256 Expected<StringRef> SectionNameOrErr = Section.getName(); in mapVirtualAddress()
261 << "Size: " << hexValue(Section.getSize()) << "\n" in mapVirtualAddress()
263 << "SectionAddress: " << hexValue(Section.getAddress()) << "\n" in mapVirtualAddress()
351 const object::SectionRef Section = Iter->second; in getSection() local
352 return std::make_pair(Section.getAddress(), Section); in getSection()
418 const object::SectionRef Section = (*SectionOrErr).second; in createInstructions() local
421 Expected<StringRef> SectionContentsOrErr = Section.getContents(); in createInstructions()
430 << ", Section Size: " << hexValue(Section.getSize()) << "\n"; in createInstructions()
432 Size = std::min(Size + 1, Section.getSize()); in createInstructions()
440 Expected<StringRef> SectionNameOrErr = Section.getName(); in createInstructions()
444 dbgs() << "Section Index: " << hexValue(Section.getIndex()) << " [" in createInstructions()
445 << hexValue((uint64_t)Section.getAddress()) << ":" in createInstructions()
446 << hexValue((uint64_t)Section.getAddress() + Section.getSize(), 10) in createInstructions()
862 const object::SectionRef Section = Entry.second; in processLines() local
863 uint64_t Size = Section.getSize(); in processLines()
866 << " , Section Size: " << hexValue(Section.getSize()) in processLines()
867 << " , Section Address: " << hexValue(Section.getAddress()) in processLines()