Re: [PATCH] hw/arm/boot: Explain why load_elf_hdr() error is ignored

2024-09-03 Thread Peter Maydell
On Tue, 3 Sept 2024 at 15:41, Philippe Mathieu-Daudé wrote: > > If the file is not an ELF file, arm_setup_direct_kernel_boot() > falls back to try it as a uimage or an AArch64 Image file or as > last resort a bare raw binary. We can discard load_elf_hdr() > error and silently return. > > Signed-of

[PATCH] hw/arm/boot: Explain why load_elf_hdr() error is ignored

2024-09-03 Thread Philippe Mathieu-Daudé
If the file is not an ELF file, arm_setup_direct_kernel_boot() falls back to try it as a uimage or an AArch64 Image file or as last resort a bare raw binary. We can discard load_elf_hdr() error and silently return. Signed-off-by: Philippe Mathieu-Daudé --- hw/arm/boot.c | 8 ++-- 1 file chan