Home
last modified time | relevance | path

Searched refs:NumberOfSections (Results 1 – 25 of 27) sorted by relevance

12

/device/linaro/bootloader/edk2/MdePkg/Library/BasePeCoffLib/
DBasePeCoff.c109 UINTN NumberOfSections; in PeCoffLoaderGetPeHeader() local
256 … SectionHeaderOffset) / EFI_IMAGE_SIZEOF_SECTION_HEADER <= Hdr.Pe32->FileHeader.NumberOfSections) { in PeCoffLoaderGetPeHeader()
272 …nHeaderOffset) / EFI_IMAGE_SIZEOF_SECTION_HEADER < (UINT32)Hdr.Pe32->FileHeader.NumberOfSections) { in PeCoffLoaderGetPeHeader()
370 …tionHeaderOffset) / EFI_IMAGE_SIZEOF_SECTION_HEADER <= Hdr.Pe32Plus->FileHeader.NumberOfSections) { in PeCoffLoaderGetPeHeader()
386 …derOffset) / EFI_IMAGE_SIZEOF_SECTION_HEADER < (UINT32)Hdr.Pe32Plus->FileHeader.NumberOfSections) { in PeCoffLoaderGetPeHeader()
479 NumberOfSections = (UINTN) (Hdr.Te->NumberOfSections); in PeCoffLoaderGetPeHeader()
482 NumberOfSections = (UINTN) (Hdr.Pe32->FileHeader.NumberOfSections); in PeCoffLoaderGetPeHeader()
485 for (Index = 0; Index < NumberOfSections; Index++) { in PeCoffLoaderGetPeHeader()
713 for (Index = 0; Index < Hdr.Pe32->FileHeader.NumberOfSections; Index++) { in PeCoffLoaderGetImageInfo()
788 for (Index = 0; Index < Hdr.Te->NumberOfSections;) { in PeCoffLoaderGetImageInfo()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DBasePeCoff.c390 for (Index = 0; Index < PeHdr->Pe32.FileHeader.NumberOfSections; Index++) { in PeCoffLoaderGetImageInfo()
455 for (Index = 0; Index < TeHdr->NumberOfSections;) { in PeCoffLoaderGetImageInfo()
483 if (Index < (UINTN) TeHdr->NumberOfSections - 1) { in PeCoffLoaderGetImageInfo()
484 … SectionHeaderOffset += (TeHdr->NumberOfSections - 1 - Index) * sizeof (EFI_IMAGE_SECTION_HEADER); in PeCoffLoaderGetImageInfo()
485 Index = TeHdr->NumberOfSections - 1; in PeCoffLoaderGetImageInfo()
500 if ((++Index) == (UINTN) TeHdr->NumberOfSections) { in PeCoffLoaderGetImageInfo()
879 UINTN NumberOfSections; in PeCoffLoaderLoadImage() local
972 NumberOfSections = (UINTN) (PeHdr->Pe32.FileHeader.NumberOfSections); in PeCoffLoaderLoadImage()
987 NumberOfSections = (UINTN) (TeHdr->NumberOfSections); in PeCoffLoaderLoadImage()
1000 for (Index = 0, MaxEnd = NULL; Index < NumberOfSections; Index++) { in PeCoffLoaderLoadImage()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/
DBasePeCoff.c311 for (Index = 0; Index < Hdr.Pe32->FileHeader.NumberOfSections; Index++) { in GluePeCoffLoaderGetImageInfo()
372 for (Index = 0; Index < Hdr.Te->NumberOfSections;) { in GluePeCoffLoaderGetImageInfo()
400 if (Index < (UINTN) Hdr.Te->NumberOfSections - 1) { in GluePeCoffLoaderGetImageInfo()
401 … SectionHeaderOffset += (Hdr.Te->NumberOfSections - 1 - Index) * sizeof (EFI_IMAGE_SECTION_HEADER); in GluePeCoffLoaderGetImageInfo()
402 Index = Hdr.Te->NumberOfSections - 1; in GluePeCoffLoaderGetImageInfo()
417 if ((++Index) == (UINTN)Hdr.Te->NumberOfSections) { in GluePeCoffLoaderGetImageInfo()
770 UINTN NumberOfSections; in GluePeCoffLoaderLoadImage() local
866 NumberOfSections = (UINTN) (Hdr.Pe32->FileHeader.NumberOfSections); in GluePeCoffLoaderLoadImage()
881 NumberOfSections = (UINTN) (Hdr.Te->NumberOfSections); in GluePeCoffLoaderLoadImage()
894 for (Index = 0, MaxEnd = NULL; Index < NumberOfSections; Index++) { in GluePeCoffLoaderLoadImage()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/Image/
DImage.c234 UINT16 NumberOfSections; in GetPeCoffImageFixLoadingAssignedAddress() local
251 NumberOfSections = ImgHdr->Te.NumberOfSections; in GetPeCoffImageFixLoadingAssignedAddress()
259 NumberOfSections = ImgHdr->Pe32.FileHeader.NumberOfSections; in GetPeCoffImageFixLoadingAssignedAddress()
264 for (Index = 0; Index < NumberOfSections; Index++) { in GetPeCoffImageFixLoadingAssignedAddress()
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFw/
DGenFw.c573 for (Index = 0; Index < PeHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in PeCoffConvertImageToXip()
649 for (Index = 0; Index < PeHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in PeCoffConvertImageToXip()
897 for (Index = 0; Index < ImgHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in SetAddressToSectionHeader()
1000 for (Index = 0; Index < ImgHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in RebaseImage()
1957 fprintf (fpInOut, "%17X number of sections\n", TEImageHeader.NumberOfSections); in main()
1970 fprintf (fpOut, "%17X number of sections\n", TEImageHeader.NumberOfSections); in main()
2065 for (Index = 0; Index < TeHdr->NumberOfSections; Index ++, SectionHeader ++) { in main()
2104 for (Index = 0; Index < PeHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in main()
2265 for (Index = 0; Index < PeHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in main()
2312 TEImageHeader.NumberOfSections = (UINT8) PeHdr->Pe32.FileHeader.NumberOfSections; in main()
[all …]
DElf64Convert.c561 NtHdr->Pe32Plus.FileHeader.NumberOfSections = mCoffNbrSections; in ScanSections64()
597 NtHdr->Pe32Plus.FileHeader.NumberOfSections--; in ScanSections64()
607 NtHdr->Pe32Plus.FileHeader.NumberOfSections--; in ScanSections64()
619 NtHdr->Pe32Plus.FileHeader.NumberOfSections--; in ScanSections64()
1057 NtHdr->Pe32Plus.FileHeader.NumberOfSections--; in WriteRelocations64()
DElf32Convert.c565 NtHdr->Pe32.FileHeader.NumberOfSections = mCoffNbrSections; in ScanSections32()
602 NtHdr->Pe32.FileHeader.NumberOfSections--; in ScanSections32()
612 NtHdr->Pe32.FileHeader.NumberOfSections--; in ScanSections32()
624 NtHdr->Pe32.FileHeader.NumberOfSections--; in ScanSections32()
1103 NtHdr->Pe32.FileHeader.NumberOfSections--; in WriteRelocations32()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenTEImage/
DGenTEImage.c447 if (FileHeader.NumberOfSections &~0xFF) { in ProcessFile()
455 (UINT32) FileHeader.NumberOfSections in ProcessFile()
460 TEImageHeader.NumberOfSections = (UINT8) FileHeader.NumberOfSections; in ProcessFile()
848 fprintf (stdout, " Number of sections 0x%02X\n", (UINT32) TEImageHeader.NumberOfSections); in DumpImage()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/
DMeasureBootPeCoff.c323 …ER *) AllocateZeroPool (sizeof (EFI_IMAGE_SECTION_HEADER) * Hdr.Pe32->FileHeader.NumberOfSections); in MeasurePeImageAndExtend()
342 for (Index = 0; Index < Hdr.Pe32->FileHeader.NumberOfSections; Index++) { in MeasurePeImageAndExtend()
359 for (Index = 0; Index < Hdr.Pe32->FileHeader.NumberOfSections; Index++) { in MeasurePeImageAndExtend()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/
DMeasureBootPeCoff.c323 …ER *) AllocateZeroPool (sizeof (EFI_IMAGE_SECTION_HEADER) * Hdr.Pe32->FileHeader.NumberOfSections); in MeasurePeImageAndExtend()
342 for (Index = 0; Index < Hdr.Pe32->FileHeader.NumberOfSections; Index++) { in MeasurePeImageAndExtend()
359 for (Index = 0; Index < Hdr.Pe32->FileHeader.NumberOfSections; Index++) { in MeasurePeImageAndExtend()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/
DPeCoffLoader.c508 for (Index = 0; Index < Hdr.Pe32->FileHeader.NumberOfSections; Index++) { in PeCoffLoaderGetImageInfo()
581 for (Index = 0; Index < Hdr.Te->NumberOfSections; Index++) { in PeCoffLoaderGetImageInfo()
1008 UINTN NumberOfSections; in PeCoffLoaderLoadImage() local
1112 NumberOfSections = (UINTN) (Hdr.Pe32->FileHeader.NumberOfSections); in PeCoffLoaderLoadImage()
1127 NumberOfSections = (UINTN) (Hdr.Te->NumberOfSections); in PeCoffLoaderLoadImage()
1140 for (Index = 0, MaxEnd = NULL; Index < NumberOfSections; Index++) { in PeCoffLoaderLoadImage()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/FwImage/
Dfwimage.c163 SectionNumber = PeHdr->PeHeader32.FileHeader.NumberOfSections; in ZeroExceptionTable()
211 … for (Index = 0; Index < PeHdr->PeHeader32.FileHeader.NumberOfSections; Index++, SectionHeader++) { in StripZeroPendingReloc()
245 … for (Index = 0; Index < PeHdr->PeHeader64.FileHeader.NumberOfSections; Index++, SectionHeader++) { in StripZeroPendingReloc()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Include/
DEfiImage.h95 UINT16 NumberOfSections; member
674 UINT8 NumberOfSections; // from the original file header member
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/
DDxeTpmMeasureBootLib.c560 …ER *) AllocateZeroPool (sizeof (EFI_IMAGE_SECTION_HEADER) * Hdr.Pe32->FileHeader.NumberOfSections); in TcgMeasurePeImage()
579 for (Index = 0; Index < Hdr.Pe32->FileHeader.NumberOfSections; Index++) { in TcgMeasurePeImage()
596 for (Index = 0; Index < Hdr.Pe32->FileHeader.NumberOfSections; Index++) { in TcgMeasurePeImage()
/device/linaro/bootloader/edk2/MdePkg/Include/IndustryStandard/
DPeImage.h83 UINT16 NumberOfSections; member
721 UINT8 NumberOfSections; ///< From the original file header. member
/device/linaro/bootloader/edk2/BaseTools/Source/C/Include/IndustryStandard/
DPeImage.h100 UINT16 NumberOfSections; member
735 UINT8 NumberOfSections; // from the original file header member
/device/linaro/bootloader/edk2/MdeModulePkg/Core/PiSmmCore/
DDispatcher.c227 UINT16 NumberOfSections; in GetPeCoffImageFixLoadingAssignedAddress() local
243 NumberOfSections = ImgHdr->Pe32.FileHeader.NumberOfSections; in GetPeCoffImageFixLoadingAssignedAddress()
248 for (Index = 0; Index < NumberOfSections; Index++) { in GetPeCoffImageFixLoadingAssignedAddress()
DPiSmmIpl.c833 UINT16 NumberOfSections; in GetPeCoffImageFixLoadingAssignedAddress() local
855 NumberOfSections = ImgHdr->Pe32.FileHeader.NumberOfSections; in GetPeCoffImageFixLoadingAssignedAddress()
860 for (Index = 0; Index < NumberOfSections; Index++) { in GetPeCoffImageFixLoadingAssignedAddress()
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Eot/
DFvImage.py1160 self.NumberOfSections = 0
1188 self.Machine, self.NumberOfSections, self.SizeOfOptionalHeader = \
1191 … NumberOfSections=%x SizeOfOptionalHeader=%x" % (self.Machine, self.NumberOfSections, self.SizeOfO…
1199 … = PeSectionTable(self._PeImageBuf, self.Offset + PeImageSectionTableOffset, self.NumberOfSections)
1208 def __init__(self, Buf, Offset, NumberOfSections): argument
1212 for TableIndex in range(0, NumberOfSections):
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Image/
DImage.c355 UINT16 NumberOfSections; in GetPeCoffImageFixLoadingAssignedAddress() local
373 NumberOfSections = ImgHdr->Pe32.FileHeader.NumberOfSections; in GetPeCoffImageFixLoadingAssignedAddress()
378 for (Index = 0; Index < NumberOfSections; Index++) { in GetPeCoffImageFixLoadingAssignedAddress()
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeImageVerificationLib/
DDxeImageVerificationLib.c524 …AllocateZeroPool (sizeof (EFI_IMAGE_SECTION_HEADER) * mNtHeader.Pe32->FileHeader.NumberOfSections); in HashPeImage()
535 for (Index = 0; Index < mNtHeader.Pe32->FileHeader.NumberOfSections; Index++) { in HashPeImage()
552 for (Index = 0; Index < mNtHeader.Pe32->FileHeader.NumberOfSections; Index++) { in HashPeImage()
/device/linaro/bootloader/edk2/DuetPkg/EfiLdr/
DPeLoader.c314 for (Index=0; Index < PeHdr.Pe32.FileHeader.NumberOfSections; Index += 1) { in EfiLdrPeCoffLoadPeImage()
/device/linaro/bootloader/edk2/BaseTools/Source/C/VolInfo/
DVolInfo.c1449 for (Index = 0; Index < ImgHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in SetAddressToSectionHeader()
1552 for (Index = 0; Index < ImgHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in RebaseImage()
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFv/
DGenFvInternalLib.c824 Index = ImgHdr->Pe32.FileHeader.NumberOfSections; in WriteMapFile()
830 Index = TEImageHeader->NumberOfSections; in WriteMapFile()
3606 for (Index = 0; Index < ImgHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in FfsRebase()
3833 for (Index = 0; Index < TEImageHeader->NumberOfSections; Index ++, SectionHeader ++) { in FfsRebase()
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/
DSecureBootConfigImpl.c1924 …AllocateZeroPool (sizeof (EFI_IMAGE_SECTION_HEADER) * mNtHeader.Pe32->FileHeader.NumberOfSections); in HashPeImage()
1939 for (Index = 0; Index < mNtHeader.Pe32->FileHeader.NumberOfSections; Index++) { in HashPeImage()
1956 for (Index = 0; Index < mNtHeader.Pe32->FileHeader.NumberOfSections; Index++) { in HashPeImage()

12