Shared libraries does not contain a PT_INTERP segment (#9331) (#9393)

This commit is contained in:
Oscar Salvador 2018-02-14 22:07:41 +01:00 committed by radare
parent 818d9db3c1
commit 6ab16a084b

View File

@ -1849,7 +1849,8 @@ int Elf_(r_bin_elf_get_static)(ELFOBJ *bin) {
return false;
}
for (i = 0; i < bin->ehdr.e_phnum; i++) {
if (bin->phdr[i].p_type == PT_INTERP) {
if (bin->phdr[i].p_type == PT_INTERP ||
bin->phdr[i].p_type == PT_DYNAMIC) {
return false;
}
}