[llvm-readelf] - Do not crash when dumping the dynamic symbol table when its sh_entzi...
authorGeorgii Rymar <grimar@accesssoftek.com>
Fri, 19 Jun 2020 13:21:57 +0000 (16:21 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Mon, 22 Jun 2020 12:41:34 +0000 (15:41 +0300)
commitf38f068b14d8ae131278ae38f55f4e9b77c9d7f8
tree3a37f8e227e26df89cfeab1a9aa7eeab281c9f9d
parent2580635bd2f3c0527353e4d7823326cd9f92ff7c
[llvm-readelf] - Do not crash when dumping the dynamic symbol table when its sh_entzize == 0.

We have a division by zero crash currently when
the sh_entzize of the dynamic symbol table is 0.

Differential revision: https://reviews.llvm.org/D82180
llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test
llvm/tools/llvm-readobj/ELFDumper.cpp