[llvm-readelf] - Allow dumping of the .dynamic section even if there is no PT_DYNAMIC...
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 29 May 2019 10:31:46 +0000 (10:31 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 29 May 2019 10:31:46 +0000 (10:31 +0000)
commit8ac7b2d07bd6042afe0e8618ca8682d7663f4be8
tree973bab661f3196065118545e1606a06fa2d20703
parentdb15e68e4d53eccd28c62584027e93393f1d32a5
[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

llvm-svn: 361943
llvm/test/Object/corrupt.test
llvm/test/Object/invalid.test
llvm/test/tools/llvm-readobj/elf-dynamic-malformed.test
llvm/test/tools/llvm-readobj/elf-dynamic-no-pt-dynamic.test
llvm/test/tools/yaml2obj/dynamic-section-raw-content.yaml
llvm/tools/llvm-readobj/ELFDumper.cpp