mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
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:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user