binfmt: Immediately exit from elf_loadbinary if elf format isn't supported
This commit is contained in:
parent
76cf66165a
commit
57d521cc59
@ -277,6 +277,7 @@ static int elf_loadbinary(FAR struct binary_s *binp,
|
||||
{
|
||||
berr("Unexpected elf type %d\n", loadinfo.ehdr.e_type);
|
||||
ret = -ENOEXEC;
|
||||
goto errout_with_load;
|
||||
}
|
||||
|
||||
/* Return the load information */
|
||||
|
Loading…
Reference in New Issue
Block a user