From 981b0f90d19c1bdab1c8ac0525e84c6a66c97866 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Thu, 30 Apr 2009 05:18:43 +0000 Subject: [PATCH] Update BasePeCoffLib comments to specify this library support scope. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8210 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf | 5 ++++- MdePkg/Library/BasePeCoffLib/Ipf/PeCoffLoaderEx.c | 9 +++------ MdePkg/Library/BasePeCoffLib/PeCoffLoaderEx.c | 2 ++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf b/MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf index 534b78ec25..56f951a171 100644 --- a/MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf +++ b/MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf @@ -1,7 +1,10 @@ #/** @file # PE/COFF Loader Library implementation. +# The IPF version library supports loading IPF and EBC PE/COFF image. +# The IA32 version library support loading IA32, X64 and EBC PE/COFF images. +# The X64 version library support loading IA32, X64 and EBC PE/COFF images. # -# Copyright (c) 2006 - 2008, Intel Corporation. +# Copyright (c) 2006 - 2009, 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 diff --git a/MdePkg/Library/BasePeCoffLib/Ipf/PeCoffLoaderEx.c b/MdePkg/Library/BasePeCoffLib/Ipf/PeCoffLoaderEx.c index d35d40be61..95c2da15dd 100644 --- a/MdePkg/Library/BasePeCoffLib/Ipf/PeCoffLoaderEx.c +++ b/MdePkg/Library/BasePeCoffLib/Ipf/PeCoffLoaderEx.c @@ -218,12 +218,9 @@ PeCoffLoaderRelocateImageEx ( Returns TRUE if the machine type of PE/COFF image is supported. Supported does not mean the image can be executed it means the PE/COFF loader supports loading and relocating of the image type. It's up to the caller to support - the entry point. - - This function implies the basic PE/COFF loader/relocator supports IA32, EBC, - & x64 images. Calling the entry point in a correct mannor is up to the - consumer of this library. This version also supports the special relocations - for Itanium. + the entry point. + + The itanium version PE/COFF loader/relocater supports itanium and EBC image. @param Machine Machine type from the PE Header. diff --git a/MdePkg/Library/BasePeCoffLib/PeCoffLoaderEx.c b/MdePkg/Library/BasePeCoffLib/PeCoffLoaderEx.c index 723d24e0f4..5d2f8cb48d 100644 --- a/MdePkg/Library/BasePeCoffLib/PeCoffLoaderEx.c +++ b/MdePkg/Library/BasePeCoffLib/PeCoffLoaderEx.c @@ -43,6 +43,8 @@ PeCoffLoaderRelocateImageEx ( does not mean the image can be executed it means the PE/COFF loader supports loading and relocating of the image type. It's up to the caller to support the entry point. + + The IA32/X64 version PE/COFF loader/relocater both support IA32, X64 and EBC images. @param Machine Machine type from the PE Header. -- 2.39.2