mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 23:24:03 +02:00
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_AARCH64 && \
|
||||||
ImageContext->Machine != EFI_IMAGE_MACHINE_RISCV64 && \
|
ImageContext->Machine != EFI_IMAGE_MACHINE_RISCV64 && \
|
||||||
ImageContext->Machine != EFI_IMAGE_MACHINE_LOONGARCH64) {
|
ImageContext->Machine != EFI_IMAGE_MACHINE_LOONGARCH64) {
|
||||||
if (ImageContext->Machine == IMAGE_FILE_MACHINE_ARM) {
|
//
|
||||||
//
|
// unsupported PeImage machine type
|
||||||
// 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
|
return RETURN_UNSUPPORTED;
|
||||||
// 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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user