On Tue, 3 May 2022 at 21:52, Richard Henderson
<richard.henderson@linaro.org> wrote:
Attempt to load the kernel with load_elf. If this fails with
ELF_LOAD_NOT_ELF, continue to treat the kernel as a raw image.
This will be handy for running semihosting programs.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
I know nothing of the specifics of the rx target, but I'm
always a bit dubious about adding more behaviour to the
-kernel option, which is (a) already a morass of undocumented
target specific behaviours (b) nominally supposed to be
"load a Linux kernel", not "load any random thing".
Can you do what you need with the generic-loader device instead?
That has the benefit of both being documented and also doing
the same thing on all target architectures.