[llvm-readobj/elf] - Refine the warning about the broken PT_DYNAMIC segment.
authorGeorgii Rymar <grimar@accesssoftek.com>
Mon, 10 Aug 2020 14:50:16 +0000 (17:50 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Mon, 17 Aug 2020 11:57:19 +0000 (14:57 +0300)
commit6567f822160ea7c4d13a7e3358883eafc61af337
tree5ce6820205aef53c3f42122c22b4de73fae255be
parentc1f6ce0c7322d47f1bb90169585fa54232231ede
[llvm-readobj/elf] - Refine the warning about the broken PT_DYNAMIC segment.

Splitted out from D85519.

Currently we report "PT_DYNAMIC segment offset + size exceeds the size of the file",
this changes it to
"PT_DYNAMIC segment offset (0x1234) + file size (0x5678) exceeds the size of the file (0x68ab)"

Differential revision: https://reviews.llvm.org/D85654
llvm/test/Object/invalid.test
llvm/test/tools/llvm-readobj/ELF/malformed-pt-dynamic.test
llvm/tools/llvm-readobj/ELFDumper.cpp