From 6ab16a084b004318565ab3a002bee3ee67ac5f51 Mon Sep 17 00:00:00 2001 From: Oscar Salvador Date: Wed, 14 Feb 2018 22:07:41 +0100 Subject: [PATCH] Shared libraries does not contain a PT_INTERP segment (#9331) (#9393) --- libr/bin/format/elf/elf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libr/bin/format/elf/elf.c b/libr/bin/format/elf/elf.c index d6e6758c2b..00ae05e918 100644 --- a/libr/bin/format/elf/elf.c +++ b/libr/bin/format/elf/elf.c @@ -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; } }