mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-25 02:37:39 +02:00
BaseUeImageLib: Refactored out unused code.
This commit is contained in:
parent
e33395096c
commit
923004dd69
@ -27,8 +27,6 @@ struct UE_LOADER_RUNTIME_CONTEXT_ {
|
||||
UINT64 *FixupData;
|
||||
UINT32 UnchainedRelocsSize;
|
||||
UINT8 *UnchainedRelocs;
|
||||
UINT32 RelocTableSize;
|
||||
UINT8 RelocTable[];
|
||||
};
|
||||
|
||||
typedef union {
|
||||
@ -430,14 +428,11 @@ UeLoaderGetRuntimeContextSize (
|
||||
{
|
||||
ASSERT (Context != NULL);
|
||||
ASSERT (Size != NULL);
|
||||
//
|
||||
// FIXME: Do we need bookkeeping? Can we prevent relocs to writable segments?
|
||||
//
|
||||
*Size = sizeof (UE_LOADER_RUNTIME_CONTEXT) + Context->RelocTableSize;
|
||||
|
||||
*Size = sizeof (UE_LOADER_RUNTIME_CONTEXT);
|
||||
return RETURN_SUCCESS;
|
||||
}
|
||||
|
||||
// FIXME:!!!
|
||||
/**
|
||||
Apply an image relocation fixup.
|
||||
|
||||
@ -1078,14 +1073,6 @@ UeRelocateImage (
|
||||
|
||||
if (RuntimeContext != NULL) {
|
||||
RuntimeContext->Machine = Context->Machine;
|
||||
RuntimeContext->RelocTableSize = Context->RelocTableSize;
|
||||
|
||||
ASSERT (Context->RelocTableSize <= RuntimeContextSize - sizeof (*RuntimeContext));
|
||||
CopyMem (
|
||||
RuntimeContext->RelocTable,
|
||||
Context->FileBuffer + Context->LoadTablesFileOffset,
|
||||
Context->RelocTableSize
|
||||
);
|
||||
}
|
||||
|
||||
return InternaRelocateImage (
|
||||
@ -1112,7 +1099,6 @@ UeRelocateImageForRuntime (
|
||||
{
|
||||
ASSERT (RuntimeContext != NULL);
|
||||
|
||||
// FIXME: Relocs to writable segments?
|
||||
return InternaRelocateImage (
|
||||
Image,
|
||||
ImageSize,
|
||||
|
@ -39,9 +39,8 @@
|
||||
[FixedPcd]
|
||||
gEfiMdePkgTokenSpaceGuid.PcdImageLoaderAlignmentPolicy
|
||||
gEfiMdePkgTokenSpaceGuid.PcdImageLoaderLoadHeader
|
||||
gEfiMdePkgTokenSpaceGuid.PcdImageLoaderRemoveXForWX
|
||||
gEfiMdePkgTokenSpaceGuid.PcdDebugRaisePropertyMask
|
||||
|
||||
gEfiMdePkgTokenSpaceGuid.PcdImageLoaderRemoveXForWX
|
||||
gEfiMdePkgTokenSpaceGuid.PcdUefiImageFormatSupportNonFv
|
||||
gEfiMdePkgTokenSpaceGuid.PcdUefiImageFormatSupportFv
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user