Searched refs:ImgHdr (Results 1 – 7 of 7) sorted by relevance
1411 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in SetAddressToSectionHeader() local1434 ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)(FileBuffer + ImageContext.PeCoffHeaderOffset); in SetAddressToSectionHeader()1440 (UINTN) ImgHdr + in SetAddressToSectionHeader()1443 ImgHdr->Pe32.FileHeader.SizeOfOptionalHeader in SetAddressToSectionHeader()1449 for (Index = 0; Index < ImgHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in SetAddressToSectionHeader()1490 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in RebaseImage() local1514 ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)(FileBuffer + ImageContext.PeCoffHeaderOffset); in RebaseImage()1546 (UINTN) ImgHdr + in RebaseImage()1549 ImgHdr->Pe32.FileHeader.SizeOfOptionalHeader in RebaseImage()1552 for (Index = 0; Index < ImgHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in RebaseImage()[all …]
751 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in WriteMapFile() local815 …ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *) ((UINT8 *) pImageContext->Handle + pImageContext->PeC… in WriteMapFile()816 AddressOfEntryPoint = ImgHdr->Pe32.OptionalHeader.AddressOfEntryPoint; in WriteMapFile()819 (UINT8 *) ImgHdr + in WriteMapFile()822 ImgHdr->Pe32.FileHeader.SizeOfOptionalHeader in WriteMapFile()824 Index = ImgHdr->Pe32.FileHeader.NumberOfSections; in WriteMapFile()2316 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in GetPe32Info() local2355 ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *) ((UINTN) Pe32 + DosHeader->e_lfanew); in GetPe32Info()2360 if (ImgHdr->Pe32.Signature != EFI_IMAGE_NT_SIGNATURE) { in GetPe32Info()2361 …Error (NULL, 0, 3000, "Invalid", "Unrecognized image signature 0x%08X.", (unsigned) ImgHdr->Pe32.S… in GetPe32Info()[all …]
230 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in GetPeCoffImageFixLoadingAssignedAddress() local244 …ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)((CHAR8* )ImageContext->Handle + ImageContext->PeCoffH… in GetPeCoffImageFixLoadingAssignedAddress()251 NumberOfSections = ImgHdr->Te.NumberOfSections; in GetPeCoffImageFixLoadingAssignedAddress()257 ImgHdr->Pe32.FileHeader.SizeOfOptionalHeader in GetPeCoffImageFixLoadingAssignedAddress()259 NumberOfSections = ImgHdr->Pe32.FileHeader.NumberOfSections; in GetPeCoffImageFixLoadingAssignedAddress()
859 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in SetAddressToSectionHeader() local882 ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)(FileBuffer + ImageContext.PeCoffHeaderOffset); in SetAddressToSectionHeader()888 (UINTN) ImgHdr + in SetAddressToSectionHeader()891 ImgHdr->Pe32.FileHeader.SizeOfOptionalHeader in SetAddressToSectionHeader()897 for (Index = 0; Index < ImgHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in SetAddressToSectionHeader()938 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in RebaseImage() local962 ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)(FileBuffer + ImageContext.PeCoffHeaderOffset); in RebaseImage()994 (UINTN) ImgHdr + in RebaseImage()997 ImgHdr->Pe32.FileHeader.SizeOfOptionalHeader in RebaseImage()1000 for (Index = 0; Index < ImgHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in RebaseImage()[all …]
223 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in GetPeCoffImageFixLoadingAssignedAddress() local236 …ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)((CHAR8* )ImageContext->Handle + ImageContext->PeCoffH… in GetPeCoffImageFixLoadingAssignedAddress()241 ImgHdr->Pe32.FileHeader.SizeOfOptionalHeader in GetPeCoffImageFixLoadingAssignedAddress()243 NumberOfSections = ImgHdr->Pe32.FileHeader.NumberOfSections; in GetPeCoffImageFixLoadingAssignedAddress()
829 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in GetPeCoffImageFixLoadingAssignedAddress() local848 …ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)((CHAR8* )ImageContext->Handle + ImageContext->PeCoffH… in GetPeCoffImageFixLoadingAssignedAddress()853 ImgHdr->Pe32.FileHeader.SizeOfOptionalHeader in GetPeCoffImageFixLoadingAssignedAddress()855 NumberOfSections = ImgHdr->Pe32.FileHeader.NumberOfSections; in GetPeCoffImageFixLoadingAssignedAddress()
352 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in GetPeCoffImageFixLoadingAssignedAddress() local366 …ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)((CHAR8* )Handle->Source + ImageContext->PeCoffHeaderO… in GetPeCoffImageFixLoadingAssignedAddress()371 ImgHdr->Pe32.FileHeader.SizeOfOptionalHeader in GetPeCoffImageFixLoadingAssignedAddress()373 NumberOfSections = ImgHdr->Pe32.FileHeader.NumberOfSections; in GetPeCoffImageFixLoadingAssignedAddress()