]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BasePeCoffLib/Ipf/PeCoffLoaderEx.c
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Library / BasePeCoffLib / Ipf / PeCoffLoaderEx.c
index c5d3563148241be0787f5393daa391feae3b1b4f..41580e56a7ea3430e5ea9e721f3d32ccaa1c14e2 100644 (file)
@@ -1,11 +1,11 @@
 /** @file\r
   Fixes Intel Itanium(TM) specific relocation types.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation\r
-  All rights reserved. This program and the accompanying materials\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
+  http://opensource.org/licenses/bsd-license.php.\r
 \r
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
@@ -66,9 +66,9 @@
 /**\r
   Performs an Itanium-based specific relocation fixup.\r
 \r
-  @param  Reloc       Pointer to the relocation record.\r
-  @param  Fixup       Pointer to the address to fix up.\r
-  @param  FixupData   Pointer to a buffer to log the fixups.\r
+  @param  Reloc       The pointer to the relocation record.\r
+  @param  Fixup       The pointer to the address to fix up.\r
+  @param  FixupData   The pointer to a buffer to log the fixups.\r
   @param  Adjust      The offset to adjust the fixup.\r
 \r
   @retval RETURN_SUCCESS Succeed to fix the relocation entry.\r
@@ -220,10 +220,7 @@ PeCoffLoaderRelocateImageEx (
   loading and relocating of the image type. It's up to the caller to support\r
   the entry point.\r
 \r
-  This function implies the basic PE/COFF loader/relocator supports IA32, EBC,\r
-  & x64 images. Calling the entry point in a correct mannor is up to the\r
-  consumer of this library. This version also supports the special relocations\r
-  for Itanium.\r
+  The itanium version PE/COFF loader/relocater supports itanium and EBC image.\r
 \r
   @param  Machine   Machine type from the PE Header.\r
 \r
@@ -236,8 +233,7 @@ PeCoffLoaderImageFormatSupported (
   IN  UINT16  Machine\r
   )\r
 {\r
-  if ((Machine == IMAGE_FILE_MACHINE_IA64) || (Machine == IMAGE_FILE_MACHINE_I386) ||\r
-      (Machine ==  IMAGE_FILE_MACHINE_EBC) || (Machine == IMAGE_FILE_MACHINE_X64)) {\r
+  if ((Machine == IMAGE_FILE_MACHINE_IA64) || (Machine == IMAGE_FILE_MACHINE_EBC)) {\r
     return TRUE;\r
   }\r
 \r
@@ -251,7 +247,7 @@ PeCoffLoaderImageFormatSupported (
 \r
   @param  Reloc             Ponter to baes of the input stream\r
   @param  Fixup             Offset to the start of the buffer\r
-  @param  FixupData         Number of bytes to copy into the buffer\r
+  @param  FixupData         The number of bytes to copy into the buffer\r
   @param  Adjust            Location to place results of read\r
 \r
   @retval RETURN_SUCCESS    Data is read from FileOffset from the Handle into\r