Error: non-item macro in item position: asm


#1

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


#2

I think you can do this with global_asm!