diff --git a/llvm/lib/Object/ELF.cpp b/llvm/lib/Object/ELF.cpp --- a/llvm/lib/Object/ELF.cpp +++ b/llvm/lib/Object/ELF.cpp @@ -545,10 +545,6 @@ // TODO: this error is untested. return createError("invalid empty dynamic section"); - if (DynSecSize % sizeof(Elf_Dyn) != 0) - // TODO: this error is untested. - return createError("malformed dynamic section"); - if (Dyn.back().d_tag != ELF::DT_NULL) // TODO: this error is untested. return createError("dynamic sections must be DT_NULL terminated");