mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
binfmt: Immediately exit from elf_loadbinary if elf format isn't supported
This commit is contained in:
@@ -277,6 +277,7 @@ static int elf_loadbinary(FAR struct binary_s *binp,
|
|||||||
{
|
{
|
||||||
berr("Unexpected elf type %d\n", loadinfo.ehdr.e_type);
|
berr("Unexpected elf type %d\n", loadinfo.ehdr.e_type);
|
||||||
ret = -ENOEXEC;
|
ret = -ENOEXEC;
|
||||||
|
goto errout_with_load;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return the load information */
|
/* Return the load information */
|
||||||
|
|||||||
Reference in New Issue
Block a user