Ignore ELF files with 'interpreter' section because KLDs doesn't contain it.

Reviewed by:	peter
This commit is contained in:
Boris Popov 2000-09-06 02:21:43 +00:00
parent 6f54390e53
commit 9548091b84
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65503
2 changed files with 10 additions and 0 deletions

View File

@ -607,6 +607,11 @@ link_elf_load_file(linker_class_t cls, const char* filename, linker_file_t* resu
case PT_DYNAMIC:
phdyn = phdr;
break;
case PT_INTERP:
link_elf_error("Unsupported file type");
error = ENOEXEC;
goto out;
}
++phdr;

View File

@ -607,6 +607,11 @@ link_elf_load_file(linker_class_t cls, const char* filename, linker_file_t* resu
case PT_DYNAMIC:
phdyn = phdr;
break;
case PT_INTERP:
link_elf_error("Unsupported file type");
error = ENOEXEC;
goto out;
}
++phdr;