On 08.05.2025 10:51, Andrew Cooper wrote: > On 07/05/2025 2:54 pm, Gerald Elder-Vass wrote: > Also, > >> ld: warning: orphan section `.sbat' from `prelink.o' being placed in section >> `.sbat' > > This is because sbat.o is getting linked into the non-EFI build of Xen too. > > I'm less sure how to go about fixing this. There's no nice way I can > see of of getting sbat.o only in the EFI build. The other option is to > discard it for the ELF build.
We already link $(note_file) into just xen.efi; I'm pretty sure the same could be done for this new object. Jan