mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
[Object][ELF] Support dumping hash-tables from files with no section table.
This time without breaking the bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241869 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -127,6 +127,10 @@ namespace opts {
|
||||
cl::opt<bool> ProgramHeaders("program-headers",
|
||||
cl::desc("Display ELF program headers"));
|
||||
|
||||
// -hash-table
|
||||
cl::opt<bool> HashTable("hash-table",
|
||||
cl::desc("Display ELF hash table"));
|
||||
|
||||
// -expand-relocs
|
||||
cl::opt<bool> ExpandRelocs("expand-relocs",
|
||||
cl::desc("Expand each shown relocation to multiple lines"));
|
||||
@ -300,6 +304,8 @@ static void dumpObject(const ObjectFile *Obj) {
|
||||
Dumper->printNeededLibraries();
|
||||
if (opts::ProgramHeaders)
|
||||
Dumper->printProgramHeaders();
|
||||
if (opts::HashTable)
|
||||
Dumper->printHashTable();
|
||||
if (Obj->getArch() == llvm::Triple::arm && Obj->isELF())
|
||||
if (opts::ARMAttributes)
|
||||
Dumper->printAttributes();
|
||||
|
Reference in New Issue
Block a user