Index: llvm/trunk/tools/llvm-objdump/llvm-objdump.h =================================================================== --- llvm/trunk/tools/llvm-objdump/llvm-objdump.h +++ llvm/trunk/tools/llvm-objdump/llvm-objdump.h @@ -32,6 +32,7 @@ extern cl::opt MCPU; extern cl::list MAttrs; extern cl::list FilterSections; +extern cl::opt AllHeaders; extern cl::opt Disassemble; extern cl::opt DisassembleAll; extern cl::opt NoShowRawInsn; Index: llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp =================================================================== --- llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp +++ llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp @@ -67,6 +67,12 @@ using namespace llvm; using namespace object; +cl::opt + llvm::AllHeaders("all-headers", + cl::desc("Display all available header information")); +static cl::alias AllHeadersShort("x", cl::desc("Alias for --all-headers"), + cl::aliasopt(AllHeaders)); + static cl::list InputFilenames(cl::Positional, cl::desc(""),cl::ZeroOrMore); @@ -2234,6 +2240,9 @@ if (InputFilenames.size() == 0) InputFilenames.push_back("a.out"); + if (AllHeaders) + PrivateHeaders = Relocations = SectionHeaders = SymbolTable = true; + if (DisassembleAll || PrintSource || PrintLines) Disassemble = true; if (!Disassemble