[llvm-objdump] Further rearrange llvm-objdump sections for compatability
authorJordan Rupprecht <rupprecht@google.com>
Thu, 3 Oct 2019 22:01:08 +0000 (22:01 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Thu, 3 Oct 2019 22:01:08 +0000 (22:01 +0000)
commit9d4a6b1bb2cee55c43ec44664d61fdb3cf932f7a
tree209e3e967c6b7d06cdbbd36fc3c479004a2e8c3a
parente0a398bf3195746d026d06721a5521d21cc23f3e
[llvm-objdump] Further rearrange llvm-objdump sections for compatability

Summary:
rL371826 rearranged some output from llvm-objdump for GNU objdump compatability, but there still seem to be some more.

I think this rearrangement is a little closer. Overview of the ordering which matches GNU objdump:
* Archive headers
* File headers
* Section headers
* Symbol table
* Dwarf debugging
* Relocations (if `--disassemble` is not used)
* Section contents
* Disassembly

Reviewers: jhenderson, justice_adams, grimar, ychen, espindola

Reviewed By: jhenderson

Subscribers: aprantl, emaste, arichardson, jrtc27, atanasyan, seiya, llvm-commits, MaskRay

Tags: #llvm

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

llvm-svn: 373671
48 files changed:
lld/test/ELF/arm-icf-exidx.s
lld/test/ELF/arm-target1.s
lld/test/ELF/eh-frame-hdr-abs-fde.s
lld/test/ELF/got32-i386.s
lld/test/ELF/got32x-i386.s
lld/test/ELF/i386-pc8-pc16-addend.s
lld/test/ELF/i386-reloc8-reloc16-addend.s
lld/test/ELF/i386-retpoline-nopic.s
lld/test/ELF/i386-retpoline-pic.s
lld/test/ELF/mips-32.s
lld/test/ELF/mips-64-got.s
lld/test/ELF/mips-64-rels.s
lld/test/ELF/mips-64.s
lld/test/ELF/mips-got16-relocatable.s
lld/test/ELF/mips-got16.s
lld/test/ELF/mips-gp-disp.s
lld/test/ELF/mips-gp-ext.s
lld/test/ELF/mips-gp-local.s
lld/test/ELF/mips-gprel32-relocs-gp0.s
lld/test/ELF/mips-gprel32-relocs.s
lld/test/ELF/mips-hilo-gp-disp.s
lld/test/ELF/mips-hilo-hi-only.s
lld/test/ELF/mips-hilo.s
lld/test/ELF/mips-mgot.s
lld/test/ELF/mips-micro-cross-calls.s
lld/test/ELF/mips-micro-relocs.s
lld/test/ELF/mips-micror6-relocs.s
lld/test/ELF/mips-n32-rels.s
lld/test/ELF/mips-nonalloc.s
lld/test/ELF/mips-pc-relocs.s
lld/test/ELF/mips-tls-64.s
lld/test/ELF/mips-tls-hilo.s
lld/test/ELF/mips-tls-static-64.s
lld/test/ELF/mips-tls-static.s
lld/test/ELF/mips-tls.s
lld/test/ELF/msp430.s
lld/test/ELF/non-alloc-link-order-gc.s
lld/test/ELF/relocation-common.s
lld/test/ELF/relocation.s
lld/test/ELF/x86-64-retpoline-znow.s
lld/test/ELF/x86-64-retpoline.s
llvm/test/MC/COFF/symidx.s
llvm/test/tools/llvm-objdump/X86/adjust-vma.test
llvm/test/tools/llvm-objdump/X86/demangle.s
llvm/test/tools/llvm-objdump/X86/out-of-section-sym.test
llvm/test/tools/llvm-objdump/all-headers.test
llvm/test/tools/llvm-objdump/output-ordering.test [new file with mode: 0644]
llvm/tools/llvm-objdump/llvm-objdump.cpp