The kernel and bootloader are not always available as ELF files, or
directly executable. For example, the kernel might be included together
with a device tree inside of an image. Support this use case by adding
support for loading binary files in addition to ELF files.
With this patch, the files specified with the -bios and -kernel
parameters are attempted to be loaded as ELF files first. If this fails,
they are loaded directly to memory instead.
The kernel and bootloader are not always available as ELF files, or directly executable. For example, the kernel might be included together with a device tree inside of an image. Support this use case by adding support for loading binary files in addition to ELF files.
With this patch, the files specified with the -bios and -kernel parameters are attempted to be loaded as ELF files first. If this fails, they are loaded directly to memory instead.