Home
last modified time | relevance | path

Searched refs:RelocDir (Results 1 – 5 of 5) sorted by relevance

/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/
DBasePeCoff.c509 EFI_IMAGE_DATA_DIRECTORY *RelocDir; in GluePeCoffLoaderRelocateImage() local
565 RelocDir = &Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_BASERELOC]; in GluePeCoffLoaderRelocateImage()
574 RelocDir = &Hdr.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_BASERELOC]; in GluePeCoffLoaderRelocateImage()
584 if (NumberOfRvaAndSizes > EFI_IMAGE_DIRECTORY_ENTRY_BASERELOC && RelocDir->Size > 0) { in GluePeCoffLoaderRelocateImage()
585 RelocBase = PeCoffLoaderImageAddress (ImageContext, RelocDir->VirtualAddress); in GluePeCoffLoaderRelocateImage()
588 RelocDir->VirtualAddress + RelocDir->Size - 1 in GluePeCoffLoaderRelocateImage()
610 RelocDir = &Hdr.Te->DataDirectory[0]; in GluePeCoffLoaderRelocateImage()
611 if (RelocDir->Size > 0) { in GluePeCoffLoaderRelocateImage()
614 RelocDir->VirtualAddress + in GluePeCoffLoaderRelocateImage()
618 RelocBaseEnd = (EFI_IMAGE_BASE_RELOCATION *) ((UINTN) RelocBase + (UINTN) RelocDir->Size - 1); in GluePeCoffLoaderRelocateImage()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DBasePeCoff.c596 EFI_IMAGE_DATA_DIRECTORY *RelocDir; in PeCoffLoaderRelocateImage() local
647 RelocDir = &OptionHeader.Optional32->DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_BASERELOC]; in PeCoffLoaderRelocateImage()
648 if ((RelocDir != NULL) && (RelocDir->Size > 0)) { in PeCoffLoaderRelocateImage()
649 RelocBase = PeCoffLoaderImageAddress (ImageContext, RelocDir->VirtualAddress); in PeCoffLoaderRelocateImage()
652 RelocDir->VirtualAddress + RelocDir->Size - 1 in PeCoffLoaderRelocateImage()
682 RelocDir = &OptionHeader.Optional64->DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_BASERELOC]; in PeCoffLoaderRelocateImage()
683 if ((RelocDir != NULL) && (RelocDir->Size > 0)) { in PeCoffLoaderRelocateImage()
684 RelocBase = PeCoffLoaderImageAddress (ImageContext, RelocDir->VirtualAddress); in PeCoffLoaderRelocateImage()
687 RelocDir->VirtualAddress + RelocDir->Size - 1 in PeCoffLoaderRelocateImage()
715 RelocDir = &TeHdr->DataDirectory[0]; in PeCoffLoaderRelocateImage()
[all …]
/device/linaro/bootloader/edk2/MdePkg/Library/BasePeCoffLib/
DBasePeCoff.c942 EFI_IMAGE_DATA_DIRECTORY *RelocDir; in PeCoffLoaderRelocateImage() local
1002 RelocDir = &Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_BASERELOC]; in PeCoffLoaderRelocateImage()
1013 RelocDir = &Hdr.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_BASERELOC]; in PeCoffLoaderRelocateImage()
1023 RelocDir = NULL; in PeCoffLoaderRelocateImage()
1036 RelocDir = &Hdr.Te->DataDirectory[0]; in PeCoffLoaderRelocateImage()
1039 if ((RelocDir != NULL) && (RelocDir->Size > 0)) { in PeCoffLoaderRelocateImage()
1040 …RelocBase = (EFI_IMAGE_BASE_RELOCATION *) PeCoffLoaderImageAddress (ImageContext, RelocDir->Virtua… in PeCoffLoaderRelocateImage()
1042RelocDir->VirtualAddress + RelocDir->Size - 1, in PeCoffLoaderRelocateImage()
1081 if ((UINTN)RelocEnd > (UINTN)RelocBaseOrg + RelocDir->Size) { in PeCoffLoaderRelocateImage()
1713 EFI_IMAGE_DATA_DIRECTORY *RelocDir; in PeCoffLoaderRelocateImageForRuntime() local
[all …]
/device/linaro/bootloader/edk2/DuetPkg/EfiLdr/
DPeLoader.c27 IN EFI_IMAGE_DATA_DIRECTORY *RelocDir,
407 IN EFI_IMAGE_DATA_DIRECTORY *RelocDir, in EfiLdrPeCoffLoadPeRelocate() argument
429 RelocBase = EfiLdrPeCoffImageAddress (Image, RelocDir->VirtualAddress); in EfiLdrPeCoffLoadPeRelocate()
430 RelocBaseEnd = EfiLdrPeCoffImageAddress (Image, RelocDir->VirtualAddress + RelocDir->Size); in EfiLdrPeCoffLoadPeRelocate()
436 NoFixupPages = EFI_SIZE_TO_PAGES(RelocDir->Size / sizeof(UINT16) * sizeof(UINTN)); in EfiLdrPeCoffLoadPeRelocate()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/
DPeCoffLoader.c698 EFI_IMAGE_DATA_DIRECTORY *RelocDir; in PeCoffLoaderRelocateImage() local
772 RelocDir = &Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_BASERELOC]; in PeCoffLoaderRelocateImage()
781 RelocDir = &Hdr.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_BASERELOC]; in PeCoffLoaderRelocateImage()
791 if (NumberOfRvaAndSizes > EFI_IMAGE_DIRECTORY_ENTRY_BASERELOC && RelocDir->Size > 0) { in PeCoffLoaderRelocateImage()
792 RelocBase = PeCoffLoaderImageAddress (ImageContext, RelocDir->VirtualAddress); in PeCoffLoaderRelocateImage()
795 RelocDir->VirtualAddress + RelocDir->Size - 1 in PeCoffLoaderRelocateImage()
817 RelocDir = &Hdr.Te->DataDirectory[0]; in PeCoffLoaderRelocateImage()
818 if (RelocDir->Size > 0) { in PeCoffLoaderRelocateImage()
821 RelocDir->VirtualAddress + in PeCoffLoaderRelocateImage()
825 RelocBaseEnd = (EFI_IMAGE_BASE_RELOCATION *) ((UINTN) RelocBase + (UINTN) RelocDir->Size - 1); in PeCoffLoaderRelocateImage()