[llvm-readobj] Downgrade 'PT_DYNAMIC segment offset + size exceeds the size of the...
authorJordan Rupprecht <rupprecht@google.com>
Mon, 12 Aug 2019 14:05:37 +0000 (14:05 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Mon, 12 Aug 2019 14:05:37 +0000 (14:05 +0000)
commitf927b34a148b27b24f37f062d5a0620b76430ade
treeb1f695448bcdb0d9942efa235d69ed2e2f8f53bd
parent9a452740ec89f856492841af3f9c616f5be96c7c
[llvm-readobj] Downgrade 'PT_DYNAMIC segment offset + size exceeds the size of the file' from an error to a warning

Summary: This allows llvm-readobj to print other useful information for truncated files instead of giving up.

Reviewers: jhenderson, grimar, MaskRay

Reviewed By: jhenderson, grimar, MaskRay

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66036

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