/device/linaro/bootloader/edk2/ArmPkg/Library/DebugPeCoffExtraActionLib/ |
D | DebugPeCoffExtraActionLib.c | 90 …Pointer, Temp, sizeof (Temp)), (UINTN)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders))); in PeCoffLoaderRelocateImageExtraAction() 93 …Pointer, Temp, sizeof (Temp)), (UINTN)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders))); in PeCoffLoaderRelocateImageExtraAction() 97 …Pointer, Temp, sizeof (Temp)), (UINTN)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders))); in PeCoffLoaderRelocateImageExtraAction() 134 …Pointer, Temp, sizeof (Temp)), (UINTN)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders))); in PeCoffLoaderUnloadImageExtraAction()
|
/device/linaro/bootloader/edk2/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/ |
D | PeiEmuPeCoffGetEntryPointLib.c | 270 UINTN SizeOfHeaders; in PeCoffGetSizeOfHeaders() local 288 …SizeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN)Hdr.Te->BaseOfCode - (UINTN)Hdr.Te->Stripped… in PeCoffGetSizeOfHeaders() 290 SizeOfHeaders = Hdr.Pe32->OptionalHeader.SizeOfHeaders; in PeCoffGetSizeOfHeaders() 292 SizeOfHeaders = 0; in PeCoffGetSizeOfHeaders() 295 return (UINT32) SizeOfHeaders; in PeCoffGetSizeOfHeaders()
|
/device/linaro/bootloader/edk2/MdePkg/Library/BasePeCoffGetEntryPointLib/ |
D | PeCoffGetEntryPoint.c | 291 UINTN SizeOfHeaders; in PeCoffGetSizeOfHeaders() local 309 …SizeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN)Hdr.Te->BaseOfCode - (UINTN)Hdr.Te->Stripped… in PeCoffGetSizeOfHeaders() 311 SizeOfHeaders = Hdr.Pe32->OptionalHeader.SizeOfHeaders; in PeCoffGetSizeOfHeaders() 313 SizeOfHeaders = 0; in PeCoffGetSizeOfHeaders() 316 return (UINT32) SizeOfHeaders; in PeCoffGetSizeOfHeaders()
|
/device/linaro/bootloader/edk2/Nt32Pkg/Library/Nt32PeiPeCoffGetEntryPointLib/ |
D | PeCoffGetEntryPoint.c | 297 UINTN SizeOfHeaders; in PeCoffGetSizeOfHeaders() local 315 …SizeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN)Hdr.Te->BaseOfCode - (UINTN)Hdr.Te->Stripped… in PeCoffGetSizeOfHeaders() 317 SizeOfHeaders = Hdr.Pe32->OptionalHeader.SizeOfHeaders; in PeCoffGetSizeOfHeaders() 319 SizeOfHeaders = 0; in PeCoffGetSizeOfHeaders() 322 return (UINT32) SizeOfHeaders; in PeCoffGetSizeOfHeaders()
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/ |
D | MeasureBootPeCoff.c | 236 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend() 242 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend() 285 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend() 291 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend() 309 SumOfBytesHashed = Hdr.Pe32->OptionalHeader.SizeOfHeaders; in MeasurePeImageAndExtend() 314 SumOfBytesHashed = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders; in MeasurePeImageAndExtend()
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/ |
D | MeasureBootPeCoff.c | 236 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend() 242 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend() 285 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend() 291 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend() 309 SumOfBytesHashed = Hdr.Pe32->OptionalHeader.SizeOfHeaders; in MeasurePeImageAndExtend() 314 SumOfBytesHashed = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders; in MeasurePeImageAndExtend()
|
/device/linaro/bootloader/edk2/ArmPkg/Library/RvdPeCoffExtraActionLib/ |
D | RvdPeCoffExtraActionLib.c | 123 …x\n", ImageContext->PdbPointer, (UINTN)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders)); in PeCoffLoaderRelocateImageExtraAction() 125 …x\n", ImageContext->PdbPointer, (UINTN)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders)); in PeCoffLoaderRelocateImageExtraAction()
|
/device/linaro/bootloader/edk2/EmbeddedPkg/GdbStub/ |
D | GdbStub.c | 866 UINTN SizeOfHeaders; in PeCoffLoaderGetDebuggerInfo() local 874 SizeOfHeaders = 0; in PeCoffLoaderGetDebuggerInfo() 897 …SizeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN)Hdr.Te->BaseOfCode - (UINTN)Hdr.Te->Stripped… in PeCoffLoaderGetDebuggerInfo() 936 SizeOfHeaders = Hdr.Pe32->OptionalHeader.SizeOfHeaders; in PeCoffLoaderGetDebuggerInfo() 944 SizeOfHeaders = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders; in PeCoffLoaderGetDebuggerInfo() 972 *DebugBase = (VOID *)(UINTN)((UINTN)DebugBase - SizeOfHeaders); in PeCoffLoaderGetDebuggerInfo() 981 (void)SizeOfHeaders; in PeCoffLoaderGetDebuggerInfo()
|
/device/linaro/bootloader/edk2/MdePkg/Library/BasePeCoffLib/ |
D | BasePeCoff.c | 175 …ImageContext->SizeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN)Hdr.Te->BaseOfCode - (UINT… in PeCoffLoaderGetPeHeader() 200 ImageContext->SizeOfHeaders - 1, 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() 340 ImageContext->SizeOfHeaders = Hdr.Pe32->OptionalHeader.SizeOfHeaders; in PeCoffLoaderGetPeHeader() 378 if (Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders <= SectionHeaderOffset) { in PeCoffLoaderGetPeHeader() 382 if (Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders >= Hdr.Pe32Plus->OptionalHeader.SizeOfImage) { in PeCoffLoaderGetPeHeader() 386 …if ((Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - SectionHeaderOffset) / EFI_IMAGE_SIZEOF_SECTION_… in PeCoffLoaderGetPeHeader() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/ |
D | DxeTpmMeasureBootLib.c | 473 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in TcgMeasurePeImage() 479 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in TcgMeasurePeImage() 522 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in TcgMeasurePeImage() 528 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in TcgMeasurePeImage() 546 SumOfBytesHashed = Hdr.Pe32->OptionalHeader.SizeOfHeaders; in TcgMeasurePeImage() 551 SumOfBytesHashed = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders; in TcgMeasurePeImage()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/ |
D | PeCoffLoader.c | 235 …ImageContext->SizeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN)Hdr.Te->BaseOfCode - (UINT… in PeCoffLoaderGetPeHeader() 265 ImageContext->SizeOfHeaders = Hdr.Pe32->OptionalHeader.SizeOfHeaders; in PeCoffLoaderGetPeHeader() 475 ImageContext->SizeOfHeaders = Hdr.Pe32->OptionalHeader.SizeOfHeaders; in PeCoffLoaderGetImageInfo() 573 …ImageContext->SizeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN) Hdr.Te->BaseOfCode - (UIN… in PeCoffLoaderGetImageInfo() 1099 &ImageContext->SizeOfHeaders, in PeCoffLoaderLoadImage() 1117 &ImageContext->SizeOfHeaders, in PeCoffLoaderLoadImage()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/ |
D | BasePeCoff.c | 127 …ImageContext->SizeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN)Hdr.Te->BaseOfCode - (UINT… in GluePeCoffLoaderGetPeHeader() 142 ImageContext->SizeOfHeaders = Hdr.Pe32->OptionalHeader.SizeOfHeaders; in GluePeCoffLoaderGetPeHeader() 151 ImageContext->SizeOfHeaders = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders; in GluePeCoffLoaderGetPeHeader() 853 &ImageContext->SizeOfHeaders, in GluePeCoffLoaderLoadImage() 871 &ImageContext->SizeOfHeaders, in GluePeCoffLoaderLoadImage()
|
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/ |
D | Host.c | 1051 (unsigned long)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders), in PrintLoadAddress() 1154 …ed int SymbolsAddr = (long unsigned int)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders); in GdbScriptAddImage() 1165 …PdbPointer) + 1, (long unsigned int)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders), 1); in GdbScriptAddImage() 1176 (long unsigned int)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders) in GdbScriptAddImage() 1186 …PdbPointer) + 1, (long unsigned int)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders), 1); in GdbScriptAddImage()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Guid/PeiPeCoffLoader/ |
D | PeiPeCoffLoader.h | 66 UINTN SizeOfHeaders; member
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/ |
D | PeCoffLib.h | 63 UINTN SizeOfHeaders; member
|
D | BasePeCoff.c | 350 ImageContext->SizeOfHeaders = OptionHeader.Optional32->SizeOfHeaders; in PeCoffLoaderGetImageInfo() 363 ImageContext->SizeOfHeaders = OptionHeader.Optional64->SizeOfHeaders; in PeCoffLoaderGetImageInfo() 447 …ImageContext->SizeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN) TeHdr->BaseOfCode - (UINT… in PeCoffLoaderGetImageInfo() 956 &ImageContext->SizeOfHeaders, in PeCoffLoaderLoadImage() 977 &ImageContext->SizeOfHeaders, in PeCoffLoaderLoadImage()
|
/device/linaro/bootloader/edk2/MdePkg/Include/Library/ |
D | PeCoffLib.h | 147 UINTN SizeOfHeaders; member
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/ |
D | EdkIIGluePeCoffLib.h | 83 UINTN SizeOfHeaders; member
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Include/ |
D | EfiImage.h | 193 UINT32 SizeOfHeaders; member 239 UINT32 SizeOfHeaders; member
|
/device/linaro/bootloader/edk2/MdePkg/Include/IndustryStandard/ |
D | PeImage.h | 173 UINT32 SizeOfHeaders; member 223 UINT32 SizeOfHeaders; member
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Include/IndustryStandard/ |
D | PeImage.h | 201 UINT32 SizeOfHeaders; member 248 UINT32 SizeOfHeaders; member
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeImageVerificationLib/ |
D | DxeImageVerificationLib.c | 428 HashSize = mNtHeader.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - mImageBase); in HashPeImage() 434 HashSize = mNtHeader.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - mImageBase); in HashPeImage() 477 HashSize = mNtHeader.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - mImageBase); in HashPeImage() 483 HashSize = mNtHeader.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - mImageBase); in HashPeImage() 501 SumOfBytesHashed = mNtHeader.Pe32->OptionalHeader.SizeOfHeaders; in HashPeImage() 506 SumOfBytesHashed = mNtHeader.Pe32Plus->OptionalHeader.SizeOfHeaders; in HashPeImage()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFw/ |
D | GenFw.c | 588 if (FirstSectionOffset < PeHdr->Pe32.OptionalHeader.SizeOfHeaders) { in PeCoffConvertImageToXip() 637 memcpy (XipFile, *FileBuffer, PeHdr->Pe32.OptionalHeader.SizeOfHeaders); in PeCoffConvertImageToXip() 2214 if (FileLength < PeHdr->Pe32.OptionalHeader.SizeOfHeaders) { in main() 2221 FileLength = FileLength - PeHdr->Pe32.OptionalHeader.SizeOfHeaders; in main() 2222 memmove (FileBuffer, FileBuffer + PeHdr->Pe32.OptionalHeader.SizeOfHeaders, FileLength); in main()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/DxeMain/ |
D | DxeMain.c | 313 ImageContext.SizeOfHeaders = PeCoffGetSizeOfHeaders ((VOID*)(UINTN)ImageContext.ImageAddress); in DxeMain()
|
/device/linaro/bootloader/edk2/DuetPkg/EfiLdr/ |
D | PeLoader.c | 255 PeHdr.Pe32.OptionalHeader.SizeOfHeaders, in EfiLdrPeCoffLoadPeImage()
|