From c58cf83da218f172fe5af39b7438ef7c3e9857e3 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Fri, 28 Sep 2007 08:48:41 +0000 Subject: Remove PeCoffLoader library class and its instances. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3967 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/PeiDxePeCoffLoaderLib/PeCoffLoader.c | 123 --------------------- .../PeiDxePeCoffLoaderLib/PeCoffLoaderLib.inf | 45 -------- .../PeiDxePeCoffLoaderLib/PeCoffLoaderLib.msa | 44 -------- 3 files changed, 212 deletions(-) delete mode 100644 MdeModulePkg/Library/PeiDxePeCoffLoaderLib/PeCoffLoader.c delete mode 100644 MdeModulePkg/Library/PeiDxePeCoffLoaderLib/PeCoffLoaderLib.inf delete mode 100644 MdeModulePkg/Library/PeiDxePeCoffLoaderLib/PeCoffLoaderLib.msa (limited to 'MdeModulePkg/Library/PeiDxePeCoffLoaderLib') diff --git a/MdeModulePkg/Library/PeiDxePeCoffLoaderLib/PeCoffLoader.c b/MdeModulePkg/Library/PeiDxePeCoffLoaderLib/PeCoffLoader.c deleted file mode 100644 index c8f6b871aa..0000000000 --- a/MdeModulePkg/Library/PeiDxePeCoffLoaderLib/PeCoffLoader.c +++ /dev/null @@ -1,123 +0,0 @@ -/*++ - -Copyright (c) 2006 - 2007, Intel Corporation -All rights reserved. This program and the accompanying materials -are licensed and made available under the terms and conditions of the BSD License -which accompanies this distribution. The full text of the license may be found at -http://opensource.org/licenses/bsd-license.php - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -Module Name: - - EdkPeCoffLoader.c - -Abstract: - - Wrap the Base PE/COFF loader with the PE COFF Protocol - - ---*/ - - -#include - -#include - -#include - -#include - - -STATIC -EFI_STATUS -EFIAPI -PeCoffLoaderLibGetImageInfo ( - IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This, - IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext - ) -{ - EFI_STATUS Status; - - Status = PeCoffLoaderGetImageInfo (ImageContext); - if (EFI_ERROR (Status)) { - return Status; - } - - switch (ImageContext->ImageType) { - - case EFI_IMAGE_SUBSYSTEM_EFI_APPLICATION: - ImageContext->ImageCodeMemoryType = EfiLoaderCode; - ImageContext->ImageDataMemoryType = EfiLoaderData; - break; - - case EFI_IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER: - ImageContext->ImageCodeMemoryType = EfiBootServicesCode; - ImageContext->ImageDataMemoryType = EfiBootServicesData; - break; - - case EFI_IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER: - case EFI_IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER: - ImageContext->ImageCodeMemoryType = EfiRuntimeServicesCode; - ImageContext->ImageDataMemoryType = EfiRuntimeServicesData; - break; - - default: - ImageContext->ImageError = IMAGE_ERROR_INVALID_SUBSYSTEM; - return RETURN_UNSUPPORTED; - } - - return Status; -} - -STATIC -EFI_STATUS -EFIAPI -PeCoffLoaderLibLoadImage ( - IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This, - IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext - ) -{ - return PeCoffLoaderLoadImage (ImageContext); -} - -STATIC -EFI_STATUS -EFIAPI -PeCoffLoaderLibRelocateImage ( - IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This, - IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext - ) -{ - return PeCoffLoaderRelocateImage (ImageContext); -} - -STATIC -EFI_STATUS -EFIAPI -PeCoffLoaderLibUnloadimage ( - IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This, - IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext - ) -{ - return EFI_SUCCESS; -} - - -EFI_PEI_PE_COFF_LOADER_PROTOCOL mPeiEfiPeiPeCoffLoader = { - PeCoffLoaderLibGetImageInfo, - PeCoffLoaderLibLoadImage, - PeCoffLoaderLibRelocateImage, - PeCoffLoaderLibUnloadimage -}; - -EFI_PEI_PE_COFF_LOADER_PROTOCOL * -EFIAPI -GetPeCoffLoaderProtocol ( - ) -{ - return &mPeiEfiPeiPeCoffLoader; -} - - diff --git a/MdeModulePkg/Library/PeiDxePeCoffLoaderLib/PeCoffLoaderLib.inf b/MdeModulePkg/Library/PeiDxePeCoffLoaderLib/PeCoffLoaderLib.inf deleted file mode 100644 index 1c60764e95..0000000000 --- a/MdeModulePkg/Library/PeiDxePeCoffLoaderLib/PeCoffLoaderLib.inf +++ /dev/null @@ -1,45 +0,0 @@ -#/** @file -# DxePeCoffLoaderLib library instance -# -# This library provides PeCoffLoader protocol based on PeCoffLib functions. -# Copyright (c) 2006, Intel Corporation. -# -# All rights reserved. This program and the accompanying materials -# are licensed and made available under the terms and conditions of the BSD License -# which accompanies this distribution. The full text of the license may be found at -# http://opensource.org/licenses/bsd-license.php -# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -# -# -#**/ - -[Defines] - INF_VERSION = 0x00010005 - BASE_NAME = PeiDxePeCoffLoaderLib - FILE_GUID = 858bbbc9-474f-4556-a361-0ae52a44ffa5 - MODULE_TYPE = PEIM - VERSION_STRING = 1.0 - LIBRARY_CLASS = PeCoffLoaderLib|DXE_CORE PEIM - EDK_RELEASE_VERSION = 0x00020000 - EFI_SPECIFICATION_VERSION = 0x00020000 - - -# -# The following information is for reference only and not required by the build tools. -# -# VALID_ARCHITECTURES = IA32 X64 IPF EBC -# - -[Sources.common] - PeCoffLoader.c - - -[Packages] - MdePkg/MdePkg.dec - MdeModulePkg/MdeModulePkg.dec - - -[LibraryClasses] - PeCoffLib - diff --git a/MdeModulePkg/Library/PeiDxePeCoffLoaderLib/PeCoffLoaderLib.msa b/MdeModulePkg/Library/PeiDxePeCoffLoaderLib/PeCoffLoaderLib.msa deleted file mode 100644 index b015020ec3..0000000000 --- a/MdeModulePkg/Library/PeiDxePeCoffLoaderLib/PeCoffLoaderLib.msa +++ /dev/null @@ -1,44 +0,0 @@ - - - - PeiDxePeCoffLoaderLib - PEIM - 858bbbc9-474f-4556-a361-0ae52a44ffa5 - 1.0 - DxePeCoffLoaderLib library instance - This library provides PeCoffLoader protocol based on PeCoffLib functions. - Copyright (c) 2006, Intel Corporation. - All rights reserved. This program and the accompanying materials - are licensed and made available under the terms and conditions of the BSD License - which accompanies this distribution. The full text of the license may be found at - http://opensource.org/licenses/bsd-license.php - THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052 - - - IA32 X64 IPF EBC - false - PeiDxePeCoffLoaderLib - - - - PeiDxeCorePeCoffLoaderLib - - - PeCoffLib - - - - PeCoffLoader.c - PeCoffLoaderLibInternals.h - - - - - - - EFI_SPECIFICATION_VERSION 0x00020000 - EDK_RELEASE_VERSION 0x00020000 - - \ No newline at end of file -- cgit v1.2.3