On Thu, 13 Feb 2020 at 17:59, Arvind Sankar <nivedita@xxxxxxxxxxxx> wrote: > > On Thu, Feb 13, 2020 at 03:59:27PM +0100, Ard Biesheuvel wrote: > > Currently, mixed mode is closely tied to the EFI handover protocol > > and relies on intimate knowledge of the bootparams structure, setup > > header etc, all of which are rather byzantine and entirely specific > > to x86. > > > > Even though no other EFI supported architectures are currently known > > that could support something like mixed mode, it makes sense to > > abstract a bit from this, and make it part of a generic Linux on EFI > > boot protocol. > > > > To that end, add a .compat section to the mixed mode binary, and populate > > it with the PE machine type and entry point address, allowing firmware > > implementations to match it to their native machine type, and invoke > > non-native binaries using a secondary entry point. > > This patch refers to efi32_pe_entry which is only defined in the next > one. Indeed. So the .compat section will be emitted with a bogus entry point when applying this patch but not the next one, so perhaps I should simply reorder them .