From fdc6288f81f6e4cd20c75768d6e968467cbc07bf Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 24 May 2023 22:05:57 +0800 Subject: BaseTools: drop IMAGE_FILE_MACHINE_ARM hacks The #define for IMAGE_FILE_MACHINE_ARM is not present in MdePkg, this looks like a relic not used any more. Remove. Signed-off-by: Gerd Hoffmann Reviewed-by: Liming Gao Reviewed-by: Rebecca Cran --- BaseTools/Source/C/Common/BasePeCoff.c | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) (limited to 'BaseTools') diff --git a/BaseTools/Source/C/Common/BasePeCoff.c b/BaseTools/Source/C/Common/BasePeCoff.c index b8bfb7b58b..0172370174 100644 --- a/BaseTools/Source/C/Common/BasePeCoff.c +++ b/BaseTools/Source/C/Common/BasePeCoff.c @@ -176,25 +176,10 @@ PeCoffLoaderCheckImageType ( ImageContext->Machine != EFI_IMAGE_MACHINE_AARCH64 && \ ImageContext->Machine != EFI_IMAGE_MACHINE_RISCV64 && \ ImageContext->Machine != EFI_IMAGE_MACHINE_LOONGARCH64) { - if (ImageContext->Machine == IMAGE_FILE_MACHINE_ARM) { - // - // There are two types of ARM images. Pure ARM and ARM/Thumb. - // If we see the ARM say it is the ARM/Thumb so there is only - // a single machine type we need to check for ARM. - // - ImageContext->Machine = EFI_IMAGE_MACHINE_ARMT; - if (ImageContext->IsTeImage == FALSE) { - PeHdr->Pe32.FileHeader.Machine = ImageContext->Machine; - } else { - TeHdr->Machine = ImageContext->Machine; - } - - } else { - // - // unsupported PeImage machine type - // - return RETURN_UNSUPPORTED; - } + // + // unsupported PeImage machine type + // + return RETURN_UNSUPPORTED; } // -- cgit v1.2.3