]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/arm/boot: Explain why load_elf_hdr() error is ignored
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 3 Sep 2024 14:41:54 +0000 (16:41 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Sep 2024 12:12:37 +0000 (13:12 +0100)
commit17e93dd5faaf3ba8a1df099cc9396e4943baa892
tree79caedd7fc8c9bbc5ecbf55f15fdc437c0cb14fc
parent2b490f150af4beee10250c8cb0da8a5b66b308e7
hw/arm/boot: Explain why load_elf_hdr() error is ignored

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é <philmd@linaro.org>
Message-id: 20240903144154.17135-1-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/boot.c