llvm-readobj: add support to dump (COFF) directives
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 7 Oct 2014 19:37:52 +0000 (19:37 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 7 Oct 2014 19:37:52 +0000 (19:37 +0000)
commitdb02fa5a110329535dda8c059549f2eed406d481
tree4d5e29123fb759aafcebb0b92ba61aeccc54d5e6
parentb3a0758832f24d1d264dfe29f2a4fb46a500beb6
llvm-readobj: add support to dump (COFF) directives

PE/COFF has a special section (.drectve) which can be used to pass options to
the linker (similar to LC_LINKER_OPTION).  Add support to llvm-readobj to print
the contents of the section for tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219228 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-readobj/COFFDumper.cpp
tools/llvm-readobj/ObjDumper.h
tools/llvm-readobj/llvm-readobj.cpp