Home
last modified time | relevance | path

Searched refs:SizeOfHeaders (Results 1 – 25 of 29) sorted by relevance

12

/device/linaro/bootloader/edk2/ArmPkg/Library/DebugPeCoffExtraActionLib/
DDebugPeCoffExtraActionLib.c90 …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/
DPeiEmuPeCoffGetEntryPointLib.c270 UINTN SizeOfHeaders; in PeCoffGetSizeOfHeaders() local
288SizeOfHeaders = 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/
DPeCoffGetEntryPoint.c291 UINTN SizeOfHeaders; in PeCoffGetSizeOfHeaders() local
309SizeOfHeaders = 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/
DPeCoffGetEntryPoint.c297 UINTN SizeOfHeaders; in PeCoffGetSizeOfHeaders() local
315SizeOfHeaders = 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/
DMeasureBootPeCoff.c236 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/
DMeasureBootPeCoff.c236 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/
DRvdPeCoffExtraActionLib.c123 …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/
DGdbStub.c866 UINTN SizeOfHeaders; in PeCoffLoaderGetDebuggerInfo() local
874 SizeOfHeaders = 0; in PeCoffLoaderGetDebuggerInfo()
897SizeOfHeaders = 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/
DBasePeCoff.c175 …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/
DDxeTpmMeasureBootLib.c473 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/
DPeCoffLoader.c235 …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/
DBasePeCoff.c127 …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/
DHost.c1051 (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/
DPeiPeCoffLoader.h66 UINTN SizeOfHeaders; member
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DPeCoffLib.h63 UINTN SizeOfHeaders; member
DBasePeCoff.c350 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/
DPeCoffLib.h147 UINTN SizeOfHeaders; member
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/
DEdkIIGluePeCoffLib.h83 UINTN SizeOfHeaders; member
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Include/
DEfiImage.h193 UINT32 SizeOfHeaders; member
239 UINT32 SizeOfHeaders; member
/device/linaro/bootloader/edk2/MdePkg/Include/IndustryStandard/
DPeImage.h173 UINT32 SizeOfHeaders; member
223 UINT32 SizeOfHeaders; member
/device/linaro/bootloader/edk2/BaseTools/Source/C/Include/IndustryStandard/
DPeImage.h201 UINT32 SizeOfHeaders; member
248 UINT32 SizeOfHeaders; member
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeImageVerificationLib/
DDxeImageVerificationLib.c428 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/
DGenFw.c588 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/
DDxeMain.c313 ImageContext.SizeOfHeaders = PeCoffGetSizeOfHeaders ((VOID*)(UINTN)ImageContext.ImageAddress); in DxeMain()
/device/linaro/bootloader/edk2/DuetPkg/EfiLdr/
DPeLoader.c255 PeHdr.Pe32.OptionalHeader.SizeOfHeaders, in EfiLdrPeCoffLoadPeImage()

12