[llvm-readelf] - Report a warning instead of an error when dumping a broken section...
authorGeorgii Rymar <grimar@accesssoftek.com>
Wed, 24 Jun 2020 13:51:42 +0000 (16:51 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Thu, 25 Jun 2020 11:38:06 +0000 (14:38 +0300)
commit03b902752e377e18f0cb10742df249bc855e00ec
treecb1ce8924f5dfff1d3b9f23633eacf36abaff84a
parent95a3550dc89a0d424d90e2c0ad30d9ecfa9422cf
[llvm-readelf] - Report a warning instead of an error when dumping a broken section header.

There is no reason to report an error in `printSectionHeaders()`, we can report
a warning and continue dumping. This is what the patch does.

Differential revision: https://reviews.llvm.org/D82462
llvm/test/tools/llvm-readobj/ELF/invalid-shstrndx.test
llvm/test/tools/llvm-readobj/ELF/many-sections.s
llvm/tools/llvm-readobj/ELFDumper.cpp