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
This commit is contained in:
Saleem Abdulrasool
2014-04-13 03:11:08 +00:00
parent f4c3a5601a
commit b77944d5ff
4 changed files with 35 additions and 4 deletions

View File

@ -287,6 +287,10 @@ struct coff_aux_weak_external {
char Unused[10];
};
struct coff_aux_file {
char FileName[18];
};
struct coff_aux_section_definition {
support::ulittle32_t Length;
support::ulittle16_t NumberOfRelocations;