Lines Matching refs:Header
637 // Check that we at least have enough room for a header.
644 // PE header is optional and is present only in executables. If it exists,
645 // it is placed right after COFF header.
651 // PE signature to find 'normal' COFF header.
698 const pe32_header *Header;
699 if ((EC = getObject(Header, Data, base() + CurPtr)))
704 if (Header->Magic == COFF::PE32Header::PE32) {
705 PE32Header = Header;
708 } else if (Header->Magic == COFF::PE32Header::PE32_PLUS) {
709 PE32PlusHeader = reinterpret_cast<const pe32plus_header *>(Header);
1520 return Header == Other.Header && Index == Other.Index;
1524 // Header->BlockSize is the size of the current block, including the
1525 // size of the header itself.
1526 uint32_t Size = sizeof(*Header) +
1528 if (Size == Header->BlockSize) {
1530 // consists of the header followed by entries. The header contains
1533 Header = reinterpret_cast<const coff_base_reloc_block_header *>(
1534 reinterpret_cast<const uint8_t *>(Header) + Size);
1542 auto *Entry = reinterpret_cast<const coff_base_reloc_block_entry *>(Header + 1);
1548 auto *Entry = reinterpret_cast<const coff_base_reloc_block_entry *>(Header + 1);
1549 Result = Header->PageRVA + Entry[Index].getOffset();