1. Replace PeCoffLoader library by PeCoff lib for PeiCore, DxeIpl and DxeMain.
2. Add three PeCoff library instances for NT32 PeImage load. 3. Update PeCoffGetEntryPointLib to support TeImage. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3965 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -213,7 +213,7 @@ Returns:
|
||||
//
|
||||
// Get information about the image being loaded
|
||||
//
|
||||
Status = gEfiPeiPeCoffLoader->GetImageInfo (gEfiPeiPeCoffLoader, &Image->ImageContext);
|
||||
Status = PeCoffLoaderGetImageInfo (&Image->ImageContext);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
@@ -305,7 +305,7 @@ Returns:
|
||||
//
|
||||
// Load the image from the file into the allocated memory
|
||||
//
|
||||
Status = gEfiPeiPeCoffLoader->LoadImage (gEfiPeiPeCoffLoader, &Image->ImageContext);
|
||||
Status = PeCoffLoaderLoadImage (&Image->ImageContext);
|
||||
if (EFI_ERROR (Status)) {
|
||||
goto Done;
|
||||
}
|
||||
@@ -328,7 +328,7 @@ Returns:
|
||||
//
|
||||
// Relocate the image in memory
|
||||
//
|
||||
Status = gEfiPeiPeCoffLoader->RelocateImage (gEfiPeiPeCoffLoader, &Image->ImageContext);
|
||||
Status = PeCoffLoaderRelocateImage (&Image->ImageContext);
|
||||
if (EFI_ERROR (Status)) {
|
||||
goto Done;
|
||||
}
|
||||
@@ -1085,7 +1085,7 @@ Returns:
|
||||
//
|
||||
// Unload image, free Image->ImageContext->ModHandle
|
||||
//
|
||||
gEfiPeiPeCoffLoader->UnloadImage (gEfiPeiPeCoffLoader, &Image->ImageContext);
|
||||
PeCoffLoaderUnloadImage (&Image->ImageContext);
|
||||
|
||||
//
|
||||
// Free our references to the image handle
|
||||
|
Reference in New Issue
Block a user