The EFI_IMAGE_REL_BASED_DIR64 type has been in switch for all common relocation type...
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 8 Dec 2006 05:09:33 +0000 (05:09 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 8 Dec 2006 05:09:33 +0000 (05:09 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2076 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BasePeCoffLib/x64/PeCoffLoaderEx.c

index 8628dc7..a8d9f23 100644 (file)
@@ -84,22 +84,5 @@ PeHotRelocateImageEx (
   IN UINT64      Adjust\r
   )\r
 {\r
-  UINT64      *F64;\r
-\r
-  switch ((*Reloc) >> 12) {\r
-    case EFI_IMAGE_REL_BASED_DIR64:\r
-      F64 = (UINT64 *) Fixup;\r
-      *FixupData = ALIGN_POINTER(*FixupData, sizeof(UINT64));\r
-      if (*(UINT64 *)(*FixupData) == *F64) {\r
-        *F64  = *F64 + (UINT64) Adjust;\r
-      }\r
-\r
-      *FixupData = *FixupData + sizeof(UINT64);\r
-      break;\r
-\r
-    default:\r
-      return RETURN_UNSUPPORTED;\r
-  }\r
\r
-  return RETURN_SUCCESS;\r
+  return RETURN_UNSUPPORTED;\r
 }\r