mirror of https://github.com/acidanthera/audk.git
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:
parent
ff52068d92
commit
fdc6288f81
|
@ -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;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue