[llvm-readobj/llvm-readelf] - Report a warning instead of a error when dumping a...
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 11 Jul 2019 12:26:48 +0000 (12:26 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 11 Jul 2019 12:26:48 +0000 (12:26 +0000)
commitbadece02b40d5c21d0c6c1cf209631e5fb19d9c0
tree26c56c1b647d1dd389fd476b40c26a2aefe6d6da
parent65d49fa60fa3ee30f5d1d0d9e637cf331372de2d
[llvm-readobj/llvm-readelf] - Report a warning instead of a error when dumping a broken dynamic section.

It does not make sence to stop dumping the object if the broken
dynamic section was found. In this patch I changed the behavior from
"report an error" to "report a warning". This matches GNU.

Differential revision: https://reviews.llvm.org/D64472

llvm-svn: 365762
llvm/test/Object/invalid.test
llvm/test/tools/llvm-readobj/elf-dynamic-malformed.test
llvm/tools/llvm-readobj/ELFDumper.cpp
llvm/tools/llvm-readobj/llvm-readobj.cpp