diff --git a/binfmt/libelf/libelf_sections.c b/binfmt/libelf/libelf_sections.c index 5de75a8855..f47f6daa85 100644 --- a/binfmt/libelf/libelf_sections.c +++ b/binfmt/libelf/libelf_sections.c @@ -188,8 +188,8 @@ int elf_loadphdrs(FAR struct elf_loadinfo_s *loadinfo) if (loadinfo->ehdr.e_phnum < 1) { - berr("No programs(?)\n"); - return -EINVAL; + binfo("No programs(?)\n"); + return 0; } /* Get the total size of the program header table */