mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
SecurityPkg: Add support for LOONGARCH64 and RISCV64 when parsing PE image
If the machine type of PE/COFF image is LOONGARCH64 or RISCV64, the LoadPeImage() should return EFI_SUCCESS. This patch is intended as a preparation for future use of LOONGARCH64 or RISCV64 PE image file. Signed-off-by: Qihang Gao <gaoqihang@loongson.cn>
This commit is contained in:
parent
d984c9b63c
commit
08258192d4
1 changed files with 2 additions and 0 deletions
|
|
@ -1805,6 +1805,8 @@ LoadPeImage (
|
|||
mSecDataDir = (EFI_IMAGE_SECURITY_DATA_DIRECTORY *)&(NtHeader32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SECURITY]);
|
||||
} else if ( (NtHeader32->FileHeader.Machine == EFI_IMAGE_MACHINE_IA64)
|
||||
|| (NtHeader32->FileHeader.Machine == EFI_IMAGE_MACHINE_X64)
|
||||
|| (NtHeader32->FileHeader.Machine == EFI_IMAGE_MACHINE_LOONGARCH64)
|
||||
|| (NtHeader32->FileHeader.Machine == EFI_IMAGE_MACHINE_RISCV64)
|
||||
|| (NtHeader32->FileHeader.Machine == EFI_IMAGE_MACHINE_AARCH64))
|
||||
{
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue