grub/grub-core/loader
Marek Marczykowski-Górecki 67580c0068 xen: Look for Xen notes in section headers too
Mirror behaviour of ELF loader in libxc: first look for Xen notes in
PT_NOTE segment, then in SHT_NOTE section and only then fallback to
a section with __xen_guest name. This fixes loading PV kernels that
Xen note have outside of PT_NOTE. While this may be result of a buggy
linker script, loading such kernel directly works fine, so make it work
with GRUB too. Specifically, this applies to binaries built from Unikraft.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2019-03-19 11:38:29 +01:00
..
arm arm: Move initrd upper to leave more space for kernel 2019-02-06 11:34:07 +01:00
arm64 efi: Rename armxx to arch 2019-02-25 11:28:44 +01:00
efi grub-core/loader/efi/fdt.c: Do not copy random memory 2019-01-14 11:53:52 +01:00
i386 xen: Look for Xen notes in section headers too 2019-03-19 11:38:29 +01:00
ia64/efi arm-uboot, ia64, sparc64: Fix up grub_file_open() calls 2018-11-16 14:42:51 +01:00
mips verifiers: Add possibility to verify kernel and modules command lines 2018-11-09 13:25:31 +01:00
powerpc/ieee1275 verifiers: Add possibility to verify kernel and modules command lines 2018-11-09 13:25:31 +01:00
riscv RISC-V: Add Linux load logic 2019-02-25 11:33:06 +01:00
sparc64/ieee1275 arm-uboot, ia64, sparc64: Fix up grub_file_open() calls 2018-11-16 14:42:51 +01:00
aout.c Implement automatic module license checking according to new GNU 2011-04-11 23:01:51 +02:00
linux.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00
lzss.c Add LZSS Mach-O support (needed for new xnu kernelcache). 2012-02-29 13:26:13 +01:00
macho.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00
macho32.c * grub-core/loader/machoXX.c: Fix compilation on non-i386. 2013-12-17 22:44:46 +01:00
macho64.c * grub-core/loader/machoXX.c: Fix compilation on non-i386. 2013-12-17 22:44:46 +01:00
machoXX.c Simplify few strings. 2013-05-07 11:44:15 +02:00
multiboot.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00
multiboot_elfxx.c multiboot_elfxx.c: Fix compilation by fixing undeclared variable 2018-07-02 14:16:14 +02:00
multiboot_mbi2.c verifiers: Add possibility to verify kernel and modules command lines 2018-11-09 13:25:31 +01:00
xnu.c verifiers: Add possibility to verify kernel and modules command lines 2018-11-09 13:25:31 +01:00
xnu_resume.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00