/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/ |
D | BasePeCoff.c | 33 OUT EFI_TE_IMAGE_HEADER **TeHdr 41 IN EFI_TE_IMAGE_HEADER *TeHdr 80 OUT EFI_TE_IMAGE_HEADER **TeHdr in PeCoffLoaderGetPeHeader() 138 *TeHdr = (EFI_TE_IMAGE_HEADER *)*PeHdr; in PeCoffLoaderGetPeHeader() 153 IN EFI_TE_IMAGE_HEADER *TeHdr in PeCoffLoaderCheckImageType() 264 EFI_TE_IMAGE_HEADER *TeHdr; in PeCoffLoaderGetImageInfo() 312 …dress = (PHYSICAL_ADDRESS) (TeHdr->ImageBase + TeHdr->StrippedSize - sizeof (EFI_TE_IMAGE_HEADER)); in PeCoffLoaderGetImageInfo() 447 …ImageContext->SizeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN) TeHdr->BaseOfCode - (UINT… in PeCoffLoaderGetImageInfo() 451 SectionHeaderOffset = (UINTN) (sizeof (EFI_TE_IMAGE_HEADER)); in PeCoffLoaderGetImageInfo() 476 sizeof (EFI_TE_IMAGE_HEADER) - in PeCoffLoaderGetImageInfo() [all …]
|
/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() 246 …ress = (PHYSICAL_ADDRESS)(Hdr.Te->ImageBase + Hdr.Te->StrippedSize - sizeof (EFI_TE_IMAGE_HEADER)); in GluePeCoffLoaderGetImageInfo() 368 SectionHeaderOffset = (UINTN)(sizeof (EFI_TE_IMAGE_HEADER)); in GluePeCoffLoaderGetImageInfo() 393 sizeof (EFI_TE_IMAGE_HEADER) - in GluePeCoffLoaderGetImageInfo() 548 Hdr.Te = (EFI_TE_IMAGE_HEADER *)(UINTN)(ImageContext->ImageAddress); in GluePeCoffLoaderRelocateImage() 549 BaseAddress = ImageContext->ImageAddress + sizeof (EFI_TE_IMAGE_HEADER) - Hdr.Te->StrippedSize; in GluePeCoffLoaderRelocateImage() 603 Hdr.Te = (EFI_TE_IMAGE_HEADER *)(UINTN)(ImageContext->ImageAddress); in GluePeCoffLoaderRelocateImage() 615 sizeof(EFI_TE_IMAGE_HEADER) - in GluePeCoffLoaderRelocateImage() 648 sizeof(EFI_TE_IMAGE_HEADER) - in GluePeCoffLoaderRelocateImage() 875 Hdr.Te = (EFI_TE_IMAGE_HEADER *)(UINTN)(ImageContext->ImageAddress); in GluePeCoffLoaderLoadImage() [all …]
|
/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() 437 … = (EFI_PHYSICAL_ADDRESS)(Hdr.Te->ImageBase + Hdr.Te->StrippedSize - sizeof (EFI_TE_IMAGE_HEADER)); in PeCoffLoaderGetImageInfo() 573 …ImageContext->SizeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN) Hdr.Te->BaseOfCode - (UIN… in PeCoffLoaderGetImageInfo() 577 SectionHeaderOffset = (UINTN)(sizeof (EFI_TE_IMAGE_HEADER)); in PeCoffLoaderGetImageInfo() 602 sizeof (EFI_TE_IMAGE_HEADER) - in PeCoffLoaderGetImageInfo() 810 Hdr.Te = (EFI_TE_IMAGE_HEADER *)(UINTN)(ImageContext->ImageAddress); in PeCoffLoaderRelocateImage() 811 …Adjust = (UINT64) (BaseAddress - Hdr.Te->StrippedSize + sizeof (EFI_TE_IMAGE_HEADER) -… in PeCoffLoaderRelocateImage() 812 … Hdr.Te->ImageBase = (UINT64) (BaseAddress - Hdr.Te->StrippedSize + sizeof (EFI_TE_IMAGE_HEADER)); in PeCoffLoaderRelocateImage() 822 sizeof(EFI_TE_IMAGE_HEADER) - in PeCoffLoaderRelocateImage() 855 sizeof(EFI_TE_IMAGE_HEADER) - in PeCoffLoaderRelocateImage() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/BasePeCoffGetEntryPointLib/ |
D | PeCoffGetEntryPoint.c | 73 …Data + (UINTN)(Hdr.Te->AddressOfEntryPoint & 0x0ffffffff) + sizeof(EFI_TE_IMAGE_HEADER) - Hdr.Te->… in PeCoffLoaderGetEntryPoint() 187 TEImageAdjust = sizeof (EFI_TE_IMAGE_HEADER) - Hdr.Te->StrippedSize; in PeCoffLoaderGetPdbPointer() 309 …SizeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN)Hdr.Te->BaseOfCode - (UINTN)Hdr.Te->Stripped… in PeCoffGetSizeOfHeaders()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenTEImage/ |
D | GenTEImage.c | 245 EFI_TE_IMAGE_HEADER TEImageHeader; in ProcessFile() 276 memset (&TEImageHeader, 0, sizeof (EFI_TE_IMAGE_HEADER)); in ProcessFile() 472 if (fwrite (&TEImageHeader, sizeof (EFI_TE_IMAGE_HEADER), 1, OutFptr) != 1) { in ProcessFile() 817 EFI_TE_IMAGE_HEADER TEImageHeader; in DumpImage() 830 if (fread (&TEImageHeader, sizeof (EFI_TE_IMAGE_HEADER), 1, InFptr) != 1) { in DumpImage() 842 fprintf (stdout, "Header (%d bytes):\n", sizeof (EFI_TE_IMAGE_HEADER)); in DumpImage()
|
/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() 180 if (sizeof (EFI_TE_IMAGE_HEADER) >= (UINT32)Hdr.Te->StrippedSize) { in PeCoffLoaderGetPeHeader() 478 SectionHeaderOffset = sizeof(EFI_TE_IMAGE_HEADER); in PeCoffLoaderGetPeHeader() 509 …justOffsetForTeImage (&SectionHeader, (UINT32)Hdr.Te->StrippedSize - sizeof (EFI_TE_IMAGE_HEADER)); in PeCoffLoaderGetPeHeader() 644 TeStrippedOffset = (UINT32)Hdr.Te->StrippedSize - sizeof (EFI_TE_IMAGE_HEADER); in PeCoffLoaderGetImageInfo() 784 SectionHeaderOffset = (UINTN)(sizeof (EFI_TE_IMAGE_HEADER)); in PeCoffLoaderGetImageInfo() 1026 Hdr.Te = (EFI_TE_IMAGE_HEADER *)(UINTN)(ImageContext->ImageAddress); in PeCoffLoaderRelocateImage() 1027 TeStrippedOffset = (UINT32)Hdr.Te->StrippedSize - sizeof (EFI_TE_IMAGE_HEADER); in PeCoffLoaderRelocateImage() 1338 Hdr.Te = (EFI_TE_IMAGE_HEADER *)(UINTN)(ImageContext->ImageAddress); in PeCoffLoaderLoadImage() 1341 sizeof(EFI_TE_IMAGE_HEADER) in PeCoffLoaderLoadImage() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/Image/ |
D | Image.c | 250 SectionHeaderOffset = sizeof (EFI_TE_IMAGE_HEADER); in GetPeCoffImageFixLoadingAssignedAddress() 440 …mageSize = ImageContext.ImageSize + ((EFI_TE_IMAGE_HEADER *) Pe32Data)->StrippedSize - sizeof (EFI… in LoadAndRelocatePeCoffImage() 476 ((EFI_TE_IMAGE_HEADER *) Pe32Data)->StrippedSize - in LoadAndRelocatePeCoffImage() 477 sizeof (EFI_TE_IMAGE_HEADER); in LoadAndRelocatePeCoffImage()
|
/device/linaro/bootloader/edk2/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/ |
D | PeiEmuPeCoffGetEntryPointLib.c | 168 TEImageAdjust = sizeof (EFI_TE_IMAGE_HEADER) - Hdr.Te->StrippedSize; in PeCoffLoaderGetPdbPointer() 288 …SizeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN)Hdr.Te->BaseOfCode - (UINTN)Hdr.Te->Stripped… in PeCoffGetSizeOfHeaders()
|
/device/linaro/bootloader/edk2/Nt32Pkg/Library/Nt32PeiPeCoffGetEntryPointLib/ |
D | PeCoffGetEntryPoint.c | 195 TEImageAdjust = sizeof (EFI_TE_IMAGE_HEADER) - Hdr.Te->StrippedSize; in PeCoffLoaderGetPdbPointer() 315 …SizeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN)Hdr.Te->BaseOfCode - (UINTN)Hdr.Te->Stripped… in PeCoffGetSizeOfHeaders()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Include/ |
D | EfiImage.h | 681 } EFI_TE_IMAGE_HEADER; typedef 696 EFI_TE_IMAGE_HEADER Te; 702 EFI_TE_IMAGE_HEADER *Te;
|
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugAgentSymbolsBaseLib/ |
D | DebugAgentSymbolsBaseLib.c | 227 ImageAddress += sizeof (EFI_TE_IMAGE_HEADER) - ((EFI_TE_IMAGE_HEADER*)EfiImage)->StrippedSize; in GetImageContext()
|
/device/linaro/bootloader/edk2/MdePkg/Include/IndustryStandard/ |
D | PeImage.h | 728 } EFI_TE_IMAGE_HEADER; typedef 746 EFI_TE_IMAGE_HEADER Te; 752 EFI_TE_IMAGE_HEADER *Te;
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Include/IndustryStandard/ |
D | PeImage.h | 742 } EFI_TE_IMAGE_HEADER; typedef 759 EFI_TE_IMAGE_HEADER Te; 765 EFI_TE_IMAGE_HEADER *Te;
|
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/ |
D | CpuExceptionCommon.c | 162 …Data + (UINTN)(Hdr.Te->AddressOfEntryPoint & 0x0ffffffff) + sizeof(EFI_TE_IMAGE_HEADER) - Hdr.Te->… in FindModuleImageBase()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFv/ |
D | GenFvInternalLib.c | 752 EFI_TE_IMAGE_HEADER *TEImageHeader; in WriteMapFile() 826 TEImageHeader = (EFI_TE_IMAGE_HEADER *) pImageContext->Handle; in WriteMapFile() 828 Offset = TEImageHeader->StrippedSize - sizeof (EFI_TE_IMAGE_HEADER); in WriteMapFile() 2317 EFI_TE_IMAGE_HEADER *TeHeader; in GetPe32Info() 2329 TeHeader = (EFI_TE_IMAGE_HEADER *) Pe32; in GetPe32Info() 2334 …*EntryPoint = TeHeader->AddressOfEntryPoint + sizeof (EFI_TE_IMAGE_HEADER) - TeHeader->StrippedS… in GetPe32Info() 2335 *BaseOfCode = TeHeader->BaseOfCode + sizeof (EFI_TE_IMAGE_HEADER) - TeHeader->StrippedSize; in GetPe32Info() 3343 EFI_TE_IMAGE_HEADER *TEImageHeader; in FfsRebase() 3696 …TEImageHeader = (EFI_TE_IMAGE_HEADER *) ((UINT8 *) CurrentPe32Section.Pe32Section + CurSecHdrSize); in FfsRebase() 3728 NewPe32BaseAddress = XipBase + (UINTN) TEImageHeader + sizeof (EFI_TE_IMAGE_HEADER) \ in FfsRebase() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffGetEntryPointLib/ |
D | PeCoffGetEntryPoint.c | 169 TEImageAdjust = sizeof (EFI_TE_IMAGE_HEADER) - Hdr.Te->StrippedSize; in PeCoffLoaderGetPdbPointer()
|
/device/linaro/bootloader/edk2/IntelFsp2Pkg/Tools/ |
D | SplitFspBin.py | 148 class EFI_TE_IMAGE_HEADER(Structure): class 527 tehdr = EFI_TE_IMAGE_HEADER.from_buffer (data, 0) 595 offset = self.Offset + EFI_TE_IMAGE_HEADER.ImageBase.offset 596 size = EFI_TE_IMAGE_HEADER.ImageBase.size
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFw/ |
D | GenFw.c | 1089 EFI_TE_IMAGE_HEADER TEImageHeader; in main() 1090 EFI_TE_IMAGE_HEADER *TeHdr; in main() 2062 TeHdr = (EFI_TE_IMAGE_HEADER *) FileBuffer; in main() 2071 (FileLength + TeHdr->StrippedSize - sizeof (EFI_TE_IMAGE_HEADER))) { in main() 2309 memset (&TEImageHeader, 0, sizeof (EFI_TE_IMAGE_HEADER)); in main() 2616 …memmove (FileBuffer + sizeof (EFI_TE_IMAGE_HEADER), FileBuffer + TEImageHeader.StrippedSize, FileL… in main() 2617 FileLength = FileLength + sizeof (EFI_TE_IMAGE_HEADER); in main() 2618 memcpy (FileBuffer, &TEImageHeader, sizeof (EFI_TE_IMAGE_HEADER)); in main()
|
/device/linaro/bootloader/edk2/UefiCpuPkg/ResetVector/Vtf0/Ia32/ |
D | SearchForSecEntry.asm | 188 ; sizeof(EFI_TE_IMAGE_HEADER) - Hdr.Te->StrippedSize);
|
/device/linaro/bootloader/edk2/EmbeddedPkg/GdbStub/ |
D | GdbStub.c | 892 TEImageAdjust = sizeof (EFI_TE_IMAGE_HEADER) - Hdr.Te->StrippedSize; in PeCoffLoaderGetDebuggerInfo() 897 …SizeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN)Hdr.Te->BaseOfCode - (UINTN)Hdr.Te->Stripped… in PeCoffLoaderGetDebuggerInfo()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenFfsFile/ |
D | GenFfsFile.c | 1391 if (Size - OldSize >= sizeof (EFI_COMMON_SECTION_HEADER) + sizeof (EFI_TE_IMAGE_HEADER) && in ProcessScript() 1393 ((EFI_TE_IMAGE_HEADER *) &FileBuffer[OldSize + 4])->Machine == EFI_IMAGE_MACHINE_IA64) { in ProcessScript() 1394 TeStrippedSize = ((EFI_TE_IMAGE_HEADER *) &FileBuffer[OldSize + 4])->StrippedSize; in ProcessScript() 1395 …t = TeStrippedSize - (OldSize + sizeof (EFI_COMMON_SECTION_HEADER) + sizeof (EFI_TE_IMAGE_HEADER)); in ProcessScript()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenFvImage/ |
D | GenFvImageLib.c | 2817 EFI_TE_IMAGE_HEADER *TeHeader; in GetPe32Info() 2829 TeHeader = (EFI_TE_IMAGE_HEADER *) Pe32; in GetPe32Info() 2834 …*EntryPoint = TeHeader->AddressOfEntryPoint + sizeof (EFI_TE_IMAGE_HEADER) - TeHeader->StrippedSi… in GetPe32Info() 2835 *BaseOfCode = TeHeader->BaseOfCode + sizeof (EFI_TE_IMAGE_HEADER) - TeHeader->StrippedSize; in GetPe32Info()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFfs/ |
D | GenFfs.c | 284 EFI_TE_IMAGE_HEADER TeHeader; in GetSectionContents()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenSec/ |
D | GenSec.c | 432 EFI_TE_IMAGE_HEADER TeHeader; in GetSectionContents()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Mem/ |
D | MemoryProfileRecord.c | 380 …ta + (UINTN) (Hdr.Te->AddressOfEntryPoint & 0x0ffffffff) + sizeof (EFI_TE_IMAGE_HEADER) - Hdr.Te->… in InternalPeCoffGetEntryPoint()
|