[llvm-readelf] - Allow dumping of the .dynamic section even if there is no PT_DYNAMIC...
commit5477567d8f0fb9045d72dc7a001e53df46831358
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 29 May 2019 10:31:46 +0000 (29 10:31 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 29 May 2019 10:31:46 +0000 (29 10:31 +0000)
tree2e38f5edb8171df6675db96d16cd362e4a6b3e7c
parent96b31af641393486153fdbd5b9177387a68f4541
[llvm-readelf] - Allow dumping of the .dynamic section even if there is no PT_DYNAMIC header.

It is now possible after D61937 was landed and was discussed
in it's review comments. It is not consistent with GNU, which
does not output .dynamic section content in this case for
no visible reason.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361943 91177308-0d34-0410-b5e6-96231b3b80d8
test/Object/corrupt.test
test/Object/invalid.test
test/tools/llvm-readobj/elf-dynamic-malformed.test
test/tools/llvm-readobj/elf-dynamic-no-pt-dynamic.test
test/tools/yaml2obj/dynamic-section-raw-content.yaml
tools/llvm-readobj/ELFDumper.cpp