mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +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 New Issue
Block a user