question about RISCV EFI stub support

Kefeng Wang at
Wed Feb 24 06:13:17 EST 2021

Hi Atish and Ard,

The commit "cb7d2dd5612a RISC-V: Add PE/COFF header for EFI stub" use to

add Magic "MZ" signature for PE/COFF header, which select RISCV_ISA_C, 
but "C"

to the ISA is optional,  and if "C" is not support ,  EFI boot is not 

Could we use ".word MZ_MAGIC" like x86 code or some other way to support 
"MZ" signature?



More information about the linux-riscv mailing list