[llvm-objdump] Fix llvm-objdump --all-headers output order
commita28f0a9ed69e6ef54b65457cbb47b668de1e79c8
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 13 Sep 2019 08:56:28 +0000 (13 08:56 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 13 Sep 2019 08:56:28 +0000 (13 08:56 +0000)
tree7089e97aedb3ae4b4a413b47a4c08ffac19d5084
parent3ebd02caee47ab87d67a57e88e33f004d6651fa8
[llvm-objdump] Fix llvm-objdump --all-headers output order

Patch by Justice Adams!

Made llvm-objdump --all-headers output match the order of GNU objdump for compatibility reasons.

Old order of the headers output:
* file header
* section header table
* symbol table
* program header table
* dynamic section

New order of the headers output (GNU compatible):
* file header information
* program header table
* dynamic section
* section header table
* symbol table

(Relevant BugZilla Bug: https://bugs.llvm.org/show_bug.cgi?id=41830)

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371826 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objdump/all-headers.test
tools/llvm-objdump/llvm-objdump.cpp