Error: non-item macro in item position: asm


Is possible to add .text header (structure) enclosed in asm! () macro outside of a rust function? Such as add a efi header, then linked to be efi file, the boot loader can recognize the header to bootup?

Thanks, Shawn


I think you can do this with global_asm!