[Object][XCOFF] Add intial support for section header table.
authorSean Fertile <sfertile@ca.ibm.com>
Thu, 25 Apr 2019 21:36:04 +0000 (21:36 +0000)
committerSean Fertile <sfertile@ca.ibm.com>
Thu, 25 Apr 2019 21:36:04 +0000 (21:36 +0000)
commita93a33cb87ec21da20b6c7080c25fdd41e225cec
tree0db16697aab3cc49ef65ec38b349d58bc21591f9
parentde329354aa37aea0fcf06e5bb88f40b73717956c
[Object][XCOFF] Add intial support for section header table.

Adds a representation of the section header table to XCOFFObjectFile,
and implements enough to dump the section headers with llvm-obdump.

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

llvm-svn: 359244
llvm/include/llvm/BinaryFormat/XCOFF.h [new file with mode: 0644]
llvm/include/llvm/Object/XCOFFObjectFile.h
llvm/lib/Object/XCOFFObjectFile.cpp
llvm/test/tools/llvm-objdump/Inputs/xcoff-long-sec-names.o [new file with mode: 0644]
llvm/test/tools/llvm-objdump/Inputs/xcoff-section-headers-truncate.o [new file with mode: 0644]
llvm/test/tools/llvm-objdump/Inputs/xcoff-section-headers.o [new file with mode: 0644]
llvm/test/tools/llvm-objdump/xcoff-section-headers.test [new file with mode: 0644]