mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Ignore ELF files with 'interpreter' section because KLDs doesn't contain it.
Reviewed by: peter
This commit is contained in:
parent
6f54390e53
commit
9548091b84
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65503
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue