Home | History | Annotate | Download | only in Object

Lines Matching defs:Sec

232     const coff_section *Sec = nullptr;
233 if (std::error_code EC = getSection(Symb->SectionNumber, Sec))
236 Ref.p = reinterpret_cast<uintptr_t>(Sec);
243 const coff_section *Sec = toSec(Ref);
244 Sec += 1;
245 Ref.p = reinterpret_cast<uintptr_t>(Sec);
250 const coff_section *Sec = toSec(Ref);
251 return getSectionName(Sec, Result);
256 const coff_section *Sec = toSec(Ref);
257 Result = Sec->VirtualAddress;
263 const coff_section *Sec = toSec(Ref);
264 Result = Sec->SizeOfRawData;
270 const coff_section *Sec = toSec(Ref);
272 std::error_code EC = getSectionContents(Sec, Res);
279 const coff_section *Sec = toSec(Ref);
280 if (!Sec)
282 Res = uint64_t(1) << (((Sec->Characteristics & 0x00F00000) >> 20) - 1);
288 const coff_section *Sec = toSec(Ref);
289 Result = Sec->Characteristics & COFF::IMAGE_SCN_CNT_CODE;
295 const coff_section *Sec = toSec(Ref);
296 Result = Sec->Characteristics & COFF::IMAGE_SCN_CNT_INITIALIZED_DATA;
302 const coff_section *Sec = toSec(Ref);
303 Result = Sec->Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA;
317 const coff_section *Sec = toSec(Ref);
318 Result = Sec->Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA;
339 const coff_section *Sec = toSec(SecRef);
344 if (SymbSec == Sec)
352 const coff_section *Sec = toSec(Ref);
354 if (Sec->NumberOfRelocations == 0) {
358 base() + Sec->PointerToRelocations);
359 if (Sec->hasExtendedRelocations()) {
369 static uint32_t getNumberOfRelocations(const coff_section *Sec,
375 if (Sec->hasExtendedRelocations()) {
377 base + Sec->PointerToRelocations);
380 return Sec->NumberOfRelocations;
384 const coff_section *Sec = toSec(Ref);
386 if (Sec->NumberOfRelocations == 0) {
390 base() + Sec->PointerToRelocations);
391 uint32_t NumReloc = getNumberOfRelocations(Sec, base());
808 std::error_code COFFObjectFile::getSectionName(const coff_section *Sec,
811 if (Sec->Name[7] == 0)
813 Name = Sec->Name;
816 Name = StringRef(Sec->Name, 8);
837 COFFObjectFile::getSectionContents(const coff_section *Sec,
842 uintptr_t ConStart = uintptr_t(base()) + Sec->PointerToRawData;
843 uintptr_t ConEnd = ConStart + Sec->SizeOfRawData;
847 Sec->SizeOfRawData);