Searched refs:PeHdr (Results 1 - 7 of 7) sorted by relevance

/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/FwImage/
H A Dfwimage.c112 IN PE_HEADER *PeHdr
133 if (PeHdr->PeHeader32.OptionalHeader.Magic == IMAGE_NT_OPTIONAL_HDR32_MAGIC) {
134 if ((PeHdr->PeHeader32.OptionalHeader.NumberOfRvaAndSizes > IMAGE_DIRECTORY_ENTRY_EXCEPTION) &&
135 (PeHdr->PeHeader32.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXCEPTION].VirtualAddress != 0) &&
136 (PeHdr->PeHeader32.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXCEPTION].Size != 0)) {
138 PdataRVA = PeHdr->PeHeader32.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXCEPTION].VirtualAddress;
139 PdataRVASize = PeHdr->PeHeader32.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXCEPTION].Size;
141 PeHdr->PeHeader32.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXCEPTION].VirtualAddress = 0;
142 PeHdr->PeHeader32.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXCEPTION].Size = 0;
144 SectionOffset = sizeof(PeHdr
309 PE_HEADER *PeHdr; local
[all...]
/device/linaro/bootloader/edk2/DuetPkg/EfiLdr/
H A DPeLoader.c68 EFI_IMAGE_OPTIONAL_HEADER_UNION PeHdr; local
71 ZeroMem (&PeHdr, sizeof(PeHdr));
82 EfiLdrPeCoffImageRead (FHand, DosHdr.e_lfanew, sizeof(PeHdr), &PeHdr);
84 if (PeHdr.Pe32.Signature != EFI_IMAGE_NT_SIGNATURE) {
92 Status = EfiLdrPeCoffCheckImageMachineType (PeHdr.Pe32.FileHeader.Machine);
97 if (PeHdr.Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) {
98 *ImageBase = (UINT32)PeHdr.Pe32.OptionalHeader.ImageBase;
99 } else if (PeHdr
119 EFI_IMAGE_OPTIONAL_HEADER_UNION PeHdr; local
[all...]
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFw/
H A DGenFw.c512 EFI_IMAGE_OPTIONAL_HEADER_UNION *PeHdr; local
520 PeHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)(Data);
521 if (PeHdr->Pe32.Signature != EFI_IMAGE_NT_SIGNATURE) {
526 PeHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)(((UINT8 *)Data) + DosHdr->e_lfanew);
527 if (PeHdr->Pe32.Signature != EFI_IMAGE_NT_SIGNATURE) {
532 return PeHdr;
541 EFI_IMAGE_OPTIONAL_HEADER_UNION *PeHdr; local
552 PeHdr = GetPeCoffHeader ((void *) *FileBuffer);
553 if (PeHdr == NULL) {
557 if (PeHdr
1093 EFI_IMAGE_OPTIONAL_HEADER_UNION *PeHdr; local
[all...]
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
H A DBasePeCoff.c32 OUT EFI_IMAGE_OPTIONAL_HEADER_UNION **PeHdr,
40 IN EFI_IMAGE_OPTIONAL_HEADER_UNION *PeHdr,
79 OUT EFI_IMAGE_OPTIONAL_HEADER_UNION **PeHdr,
92 PeHdr - The buffer in which to return the PE header
133 *PeHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *) ((UINTN)ImageContext->Handle + ImageContext->PeCoffHeaderOffset);
134 if ((*PeHdr)->Pe32.Signature != EFI_IMAGE_NT_SIGNATURE) {
138 *TeHdr = (EFI_TE_IMAGE_HEADER *)*PeHdr;
152 IN EFI_IMAGE_OPTIONAL_HEADER_UNION *PeHdr,
165 PeHdr - The buffer in which to return the PE header
181 ImageContext->Machine = PeHdr
77 PeCoffLoaderGetPeHeader( IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext, OUT EFI_IMAGE_OPTIONAL_HEADER_UNION **PeHdr, OUT EFI_TE_IMAGE_HEADER **TeHdr ) argument
150 PeCoffLoaderCheckImageType( IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext, IN EFI_IMAGE_OPTIONAL_HEADER_UNION *PeHdr, IN EFI_TE_IMAGE_HEADER *TeHdr ) argument
263 EFI_IMAGE_OPTIONAL_HEADER_UNION *PeHdr; local
594 EFI_IMAGE_OPTIONAL_HEADER_UNION *PeHdr; local
874 EFI_IMAGE_OPTIONAL_HEADER_UNION *PeHdr; local
[all...]
/device/linaro/bootloader/edk2/BaseTools/Source/C/EfiRom/
H A DEfiRom.c789 EFI_IMAGE_OPTIONAL_HEADER_UNION PeHdr; local
818 if (fread (&PeHdr, sizeof (PeHdr), 1, Fptr) != 1) {
827 if (PeHdr.Pe32.Signature != EFI_IMAGE_NT_SIGNATURE) {
832 memcpy ((char *) MachineType, &PeHdr.Pe32.FileHeader.Machine, 2);
834 if (PeHdr.Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) {
835 *SubSystem = PeHdr.Pe32.OptionalHeader.Subsystem;
836 } else if (PeHdr.Pe32Plus.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) {
837 *SubSystem = PeHdr.Pe32Plus.OptionalHeader.Subsystem;
/device/linaro/bootloader/edk2/IntelFsp2Pkg/Tools/
H A DSplitFspBin.py533 self.PeHdr = EFI_IMAGE_NT_HEADERS32.from_buffer (data, self.DosHdr.e_lfanew)
534 if self.PeHdr.Signature != 0x4550:
536 if self.PeHdr.FileHeader.SizeOfOptionalHeader < EFI_IMAGE_OPTIONAL_HEADER32.DataDirectory.offset:
538 if self.PeHdr.OptionalHeader.NumberOfRvaAndSizes <= EFI_IMAGE_DIRECTORY_ENTRY.BASERELOC:
552 rsize = self.PeHdr.OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY.BASERELOC].Size
553 roffset = self.PeHdr.OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY.BASERELOC].VirtualAddress
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/
H A DBootOption.c1217 EFI_IMAGE_OPTIONAL_HEADER_UNION PeHdr; local
1234 File->Read (File, &BufferSize, &PeHdr);
1235 if (PeHdr.Pe32.Signature != EFI_IMAGE_NT_SIGNATURE) {
1242 if (PeHdr.Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) {
1243 Subsystem = PeHdr.Pe32.OptionalHeader.Subsystem;
1244 } else if (PeHdr.Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) {
1245 Subsystem = PeHdr.Pe32Plus.OptionalHeader.Subsystem;

Completed in 64 milliseconds