]> granicus.if.org Git - llvm/commit
[llvm-objdump] Fix llvm-objdump --all-headers output order
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 13 Sep 2019 08:56:28 +0000 (08:56 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 13 Sep 2019 08:56:28 +0000 (08:56 +0000)
commit9b7a447e5aa1de10fe70d150545078b197dbbbd2
tree7089e97aedb3ae4b4a413b47a4c08ffac19d5084
parente7c377e21ffc796e92e89ff993188bb936f76a4e
[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