llvm-readobj: teach it how to dump COFF base relocation table

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222289 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rui Ueyama
2014-11-19 00:18:07 +00:00
parent f82e60f03d
commit 6272b8c4be
7 changed files with 168 additions and 2 deletions

View File

@ -149,7 +149,12 @@ namespace opts {
// -coff-directives
cl::opt<bool>
COFFDirectives("coff-directives",
cl::desc("Display the contents PE/COFF .drectve section"));
cl::desc("Display the PE/COFF .drectve section"));
// -coff-basereloc
cl::opt<bool>
COFFBaseRelocs("coff-basereloc",
cl::desc("Display the PE/COFF .reloc section"));
} // namespace opts
static int ReturnValue = EXIT_SUCCESS;
@ -279,6 +284,8 @@ static void dumpObject(const ObjectFile *Obj) {
Dumper->printCOFFImports();
if (opts::COFFDirectives)
Dumper->printCOFFDirectives();
if (opts::COFFBaseRelocs)
Dumper->printCOFFBaseReloc();
}