From b96ad3ace807e39632147ecaa98eb0e3c1b5e6cc Mon Sep 17 00:00:00 2001 From: klu2 Date: Fri, 8 Dec 2006 05:09:33 +0000 Subject: The EFI_IMAGE_REL_BASED_DIR64 type has been in switch for all common relocation type, So last check-in is duplicated code. Remove it. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2076 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BasePeCoffLib/x64/PeCoffLoaderEx.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'MdePkg/Library/BasePeCoffLib') diff --git a/MdePkg/Library/BasePeCoffLib/x64/PeCoffLoaderEx.c b/MdePkg/Library/BasePeCoffLib/x64/PeCoffLoaderEx.c index 8628dc7df1..a8d9f23e8c 100644 --- a/MdePkg/Library/BasePeCoffLib/x64/PeCoffLoaderEx.c +++ b/MdePkg/Library/BasePeCoffLib/x64/PeCoffLoaderEx.c @@ -84,22 +84,5 @@ PeHotRelocateImageEx ( IN UINT64 Adjust ) { - UINT64 *F64; - - switch ((*Reloc) >> 12) { - case EFI_IMAGE_REL_BASED_DIR64: - F64 = (UINT64 *) Fixup; - *FixupData = ALIGN_POINTER(*FixupData, sizeof(UINT64)); - if (*(UINT64 *)(*FixupData) == *F64) { - *F64 = *F64 + (UINT64) Adjust; - } - - *FixupData = *FixupData + sizeof(UINT64); - break; - - default: - return RETURN_UNSUPPORTED; - } - - return RETURN_SUCCESS; + return RETURN_UNSUPPORTED; } -- cgit v1.2.3