• Home
  • Raw
  • Download

Lines Matching refs:Pe32

69 …if (Hdr.Pe32->FileHeader.Machine == IMAGE_FILE_MACHINE_IA64 && Hdr.Pe32->OptionalHeader.Magic == E…  in PeCoffLoaderGetPeHeaderMagicValue()
75 return Hdr.Pe32->OptionalHeader.Magic; in PeCoffLoaderGetPeHeaderMagicValue()
152 Hdr.Pe32 in PeCoffLoaderGetPeHeader()
221 } else if (Hdr.Pe32->Signature == EFI_IMAGE_NT_SIGNATURE) { in PeCoffLoaderGetPeHeader()
223 ImageContext->Machine = Hdr.Pe32->FileHeader.Machine; in PeCoffLoaderGetPeHeader()
231 if (EFI_IMAGE_NUMBER_OF_DIRECTORY_ENTRIES < Hdr.Pe32->OptionalHeader.NumberOfRvaAndSizes) { in PeCoffLoaderGetPeHeader()
242 if (((UINT32)Hdr.Pe32->FileHeader.SizeOfOptionalHeader - HeaderWithoutDataDir) != in PeCoffLoaderGetPeHeader()
243 Hdr.Pe32->OptionalHeader.NumberOfRvaAndSizes * sizeof (EFI_IMAGE_DATA_DIRECTORY)) { in PeCoffLoaderGetPeHeader()
248 …CoffHeaderOffset + sizeof (UINT32) + sizeof (EFI_IMAGE_FILE_HEADER) + Hdr.Pe32->FileHeader.SizeOfO… in PeCoffLoaderGetPeHeader()
252 if (Hdr.Pe32->OptionalHeader.SizeOfImage <= SectionHeaderOffset) { in PeCoffLoaderGetPeHeader()
256 …if ((Hdr.Pe32->OptionalHeader.SizeOfImage - SectionHeaderOffset) / EFI_IMAGE_SIZEOF_SECTION_HEADER… in PeCoffLoaderGetPeHeader()
264 if (Hdr.Pe32->OptionalHeader.SizeOfHeaders <= SectionHeaderOffset) { in PeCoffLoaderGetPeHeader()
268 if (Hdr.Pe32->OptionalHeader.SizeOfHeaders >= Hdr.Pe32->OptionalHeader.SizeOfImage) { in PeCoffLoaderGetPeHeader()
272 …if ((Hdr.Pe32->OptionalHeader.SizeOfHeaders - SectionHeaderOffset) / EFI_IMAGE_SIZEOF_SECTION_HEAD… in PeCoffLoaderGetPeHeader()
284 Hdr.Pe32->OptionalHeader.SizeOfHeaders - 1, in PeCoffLoaderGetPeHeader()
301 if (EFI_IMAGE_DIRECTORY_ENTRY_SECURITY < Hdr.Pe32->OptionalHeader.NumberOfRvaAndSizes) { in PeCoffLoaderGetPeHeader()
302 if (Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SECURITY].Size != 0) { in PeCoffLoaderGetPeHeader()
306 …if ((UINT32) (~0) - Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SECURITY].Vir… in PeCoffLoaderGetPeHeader()
307 Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SECURITY].Size) { in PeCoffLoaderGetPeHeader()
319 … Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SECURITY].VirtualAddress + in PeCoffLoaderGetPeHeader()
320 … Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SECURITY].Size - 1, in PeCoffLoaderGetPeHeader()
337 ImageContext->ImageType = Hdr.Pe32->OptionalHeader.Subsystem; in PeCoffLoaderGetPeHeader()
338 ImageContext->ImageSize = (UINT64)Hdr.Pe32->OptionalHeader.SizeOfImage; in PeCoffLoaderGetPeHeader()
339 ImageContext->SectionAlignment = Hdr.Pe32->OptionalHeader.SectionAlignment; in PeCoffLoaderGetPeHeader()
340 ImageContext->SizeOfHeaders = Hdr.Pe32->OptionalHeader.SizeOfHeaders; in PeCoffLoaderGetPeHeader()
481 …CoffHeaderOffset + sizeof (UINT32) + sizeof (EFI_IMAGE_FILE_HEADER) + Hdr.Pe32->FileHeader.SizeOfO… in PeCoffLoaderGetPeHeader()
482 NumberOfSections = (UINTN) (Hdr.Pe32->FileHeader.NumberOfSections); in PeCoffLoaderGetPeHeader()
636 ImageContext->ImageAddress = Hdr.Pe32->OptionalHeader.ImageBase; in PeCoffLoaderGetImageInfo()
672 …if ((!(ImageContext->IsTeImage)) && ((Hdr.Pe32->FileHeader.Characteristics & EFI_IMAGE_FILE_RELOCS… in PeCoffLoaderGetImageInfo()
685 NumberOfRvaAndSizes = Hdr.Pe32->OptionalHeader.NumberOfRvaAndSizes; in PeCoffLoaderGetImageInfo()
686 …DebugDirectoryEntry = (EFI_IMAGE_DATA_DIRECTORY *)&(Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMA… in PeCoffLoaderGetImageInfo()
710 Hdr.Pe32->FileHeader.SizeOfOptionalHeader in PeCoffLoaderGetImageInfo()
713 for (Index = 0; Index < Hdr.Pe32->FileHeader.NumberOfSections; Index++) { in PeCoffLoaderGetImageInfo()
988 …Hdr.Pe32 = (EFI_IMAGE_NT_HEADERS32 *)((UINTN)ImageContext->ImageAddress + ImageContext->PeCoffHead… in PeCoffLoaderRelocateImage()
996 Adjust = (UINT64)BaseAddress - Hdr.Pe32->OptionalHeader.ImageBase; in PeCoffLoaderRelocateImage()
998 Hdr.Pe32->OptionalHeader.ImageBase = (UINT32)BaseAddress; in PeCoffLoaderRelocateImage()
1001 NumberOfRvaAndSizes = Hdr.Pe32->OptionalHeader.NumberOfRvaAndSizes; in PeCoffLoaderRelocateImage()
1002 RelocDir = &Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_BASERELOC]; in PeCoffLoaderRelocateImage()
1319 …Hdr.Pe32 = (EFI_IMAGE_NT_HEADERS32 *)((UINTN)ImageContext->ImageAddress + ImageContext->PeCoffHead… in PeCoffLoaderLoadImage()
1326 Hdr.Pe32->FileHeader.SizeOfOptionalHeader in PeCoffLoaderLoadImage()
1328 NumberOfSections = (UINTN) (Hdr.Pe32->FileHeader.NumberOfSections); in PeCoffLoaderLoadImage()
1420 … (UINTN)Hdr.Pe32->OptionalHeader.AddressOfEntryPoint, in PeCoffLoaderLoadImage()
1453 NumberOfRvaAndSizes = Hdr.Pe32->OptionalHeader.NumberOfRvaAndSizes; in PeCoffLoaderLoadImage()
1454 …DirectoryEntry = (EFI_IMAGE_DATA_DIRECTORY *)&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIR… in PeCoffLoaderLoadImage()
1574 NumberOfRvaAndSizes = Hdr.Pe32->OptionalHeader.NumberOfRvaAndSizes; in PeCoffLoaderLoadImage()
1575 …DirectoryEntry = (EFI_IMAGE_DATA_DIRECTORY *)&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIR… in PeCoffLoaderLoadImage()
1740 Hdr.Pe32 = (EFI_IMAGE_NT_HEADERS32 *)(((CHAR8 *)DosHdr) + DosHdr->e_lfanew); in PeCoffLoaderRelocateImageForRuntime()
1745 Hdr.Pe32 = (EFI_IMAGE_NT_HEADERS32 *)OldBase; in PeCoffLoaderRelocateImageForRuntime()
1748 if (Hdr.Pe32->Signature != EFI_IMAGE_NT_SIGNATURE) { in PeCoffLoaderRelocateImageForRuntime()
1761 NumberOfRvaAndSizes = Hdr.Pe32->OptionalHeader.NumberOfRvaAndSizes; in PeCoffLoaderRelocateImageForRuntime()
1762 DataDirectory = (EFI_IMAGE_DATA_DIRECTORY *)&(Hdr.Pe32->OptionalHeader.DataDirectory[0]); in PeCoffLoaderRelocateImageForRuntime()