Skip to content

Commit 8bf5231

Browse files
committed
nacl_helper_bootstrap: also accept statically build sel_ldr
1 parent 49d6042 commit 8bf5231

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/trusted/service_runtime/linux/nacl_bootstrap.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ static ElfW(Addr) load_elf_file(const char *filename,
291291
fail(filename, "ELF file has unreasonable ",
292292
"e_phnum", ehdr.e_phnum, NULL, 0);
293293

294-
if (ehdr.e_type != ET_DYN)
295-
fail(filename, "ELF file not ET_DYN! ",
294+
if (ehdr.e_type != ET_DYN || ehdr.e_type != ET_EXEC)
295+
fail(filename, "ELF file not ET_DYN neither ET_EXEC!",
296296
"e_type", ehdr.e_type, NULL, 0);
297297

298298
my_pread(filename, "Failed to read program headers from ELF file! ",

0 commit comments

Comments
 (0)