tools: teach objdump about FILE aux records
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 13 Apr 2014 03:11:08 +0000 (03:11 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 13 Apr 2014 03:11:08 +0000 (03:11 +0000)
commitb77944d5ff1cead1d247e73ccfc86fa1b5f9e3f2
tree53d40abae26f29417f5ba93f94b09af506a79cbd
parentf4c3a5601aefe2e6500ff4af394196da55203e52
tools: teach objdump about FILE aux records

Add support for file auxiliary symbol entries in COFF symbol tables.  A COFF
symbol table with a FILE entry is followed by sizeof(__FILE__) / 18 auxiliary
symbol records which contain the filename.  Read them and form the original
filename that the record contains.  Then display the name in the output.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206126 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/COFF.h
test/tools/llvm-objdump/Inputs/file.obj.coff-arm [new file with mode: 0755]
test/tools/llvm-objdump/coff-file.test [new file with mode: 0644]
tools/llvm-objdump/llvm-objdump.cpp