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 <kraxel@redhat.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Rebecca Cran <rebecca@bsdio.com>
This commit is contained in:
Gerd Hoffmann 2023-05-24 22:05:57 +08:00 committed by mergify[bot]
parent ff52068d92
commit fdc6288f81
1 changed files with 4 additions and 19 deletions

View File

@ -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;
}
//