diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -1614,7 +1614,7 @@ return; const auto *Elf = dyn_cast(Obj); - if (!Elf || Elf->getEType() != ELF::ET_DYN) { + if (!Elf || (Elf->getEType() != ELF::ET_EXEC && Elf->getEType() != ELF::ET_DYN)) { reportError(Obj->getFileName(), "not a dynamic object"); return; }