Home
last modified time | relevance | path

Searched refs:ImgHdr (Results 1 – 7 of 7) sorted by relevance

/device/linaro/bootloader/edk2/BaseTools/Source/C/VolInfo/
DVolInfo.c1411 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in SetAddressToSectionHeader() local
1434 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() local
1514 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 …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFv/
DGenFvInternalLib.c751 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in WriteMapFile() local
815ImgHdr = (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() local
2355 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 …]
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/Image/
DImage.c230 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in GetPeCoffImageFixLoadingAssignedAddress() local
244ImgHdr = (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()
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFw/
DGenFw.c859 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in SetAddressToSectionHeader() local
882 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() local
962 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 …]
/device/linaro/bootloader/edk2/MdeModulePkg/Core/PiSmmCore/
DDispatcher.c223 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in GetPeCoffImageFixLoadingAssignedAddress() local
236ImgHdr = (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()
DPiSmmIpl.c829 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in GetPeCoffImageFixLoadingAssignedAddress() local
848ImgHdr = (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()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Image/
DImage.c352 EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr; in GetPeCoffImageFixLoadingAssignedAddress() local
366ImgHdr = (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()