• Home
  • Raw
  • Download

Lines Matching refs:sec

280   const coff_section *sec = toSec(Sec);  in getSectionNext()  local
281 sec += 1; in getSectionNext()
282 Sec.p = reinterpret_cast<uintptr_t>(sec); in getSectionNext()
289 const coff_section *sec = toSec(Sec); in getSectionName() local
291 if (sec->Name[7] == 0) in getSectionName()
293 name = sec->Name; in getSectionName()
296 name = StringRef(sec->Name, 8); in getSectionName()
312 const coff_section *sec = toSec(Sec); in getSectionAddress() local
313 Result = sec->VirtualAddress; in getSectionAddress()
319 const coff_section *sec = toSec(Sec); in getSectionSize() local
320 Result = sec->SizeOfRawData; in getSectionSize()
326 const coff_section *sec = toSec(Sec); in getSectionContents() local
330 uintptr_t con_start = uintptr_t(base()) + sec->PointerToRawData; in getSectionContents()
331 uintptr_t con_end = con_start + sec->SizeOfRawData; in getSectionContents()
335 sec->SizeOfRawData); in getSectionContents()
341 const coff_section *sec = toSec(Sec); in getSectionAlignment() local
342 if (!sec) in getSectionAlignment()
344 Res = uint64_t(1) << (((sec->Characteristics & 0x00F00000) >> 20) - 1); in getSectionAlignment()
350 const coff_section *sec = toSec(Sec); in isSectionText() local
351 Result = sec->Characteristics & COFF::IMAGE_SCN_CNT_CODE; in isSectionText()
357 const coff_section *sec = toSec(Sec); in isSectionData() local
358 Result = sec->Characteristics & COFF::IMAGE_SCN_CNT_INITIALIZED_DATA; in isSectionData()
364 const coff_section *sec = toSec(Sec); in isSectionBSS() local
365 Result = sec->Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA; in isSectionBSS()
372 const coff_section *sec = toSec(Sec); in sectionContainsSymbol() local
376 if (symb_sec == sec) in sectionContainsSymbol()
384 const coff_section *sec = toSec(Sec); in getSectionRelBegin() local
387 if (sec->NumberOfRelocations == 0) in getSectionRelBegin()
390 ret.p = reinterpret_cast<uintptr_t>(base() + sec->PointerToRelocations); in getSectionRelBegin()
396 const coff_section *sec = toSec(Sec); in getSectionRelEnd() local
399 if (sec->NumberOfRelocations == 0) in getSectionRelEnd()
404 base() + sec->PointerToRelocations) in getSectionRelEnd()
405 + sec->NumberOfRelocations); in getSectionRelEnd()