[llvm] r269376 - llvm-readobj: Fix GNU style entry point print width
Hemant Kulkarni via llvm-commits
llvm-commits at lists.llvm.org
Thu May 12 15:51:26 PDT 2016
Author: khemant
Date: Thu May 12 17:51:26 2016
New Revision: 269376
URL: http://llvm.org/viewvc/llvm-project?rev=269376&view=rev
Log:
llvm-readobj: Fix GNU style entry point print width
Modified:
llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
Modified: llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/ELFDumper.cpp?rev=269376&r1=269375&r2=269376&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/ELFDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/ELFDumper.cpp Thu May 12 17:51:26 2016
@@ -2834,7 +2834,7 @@ void GNUStyle<ELFT>::printProgramHeaders
48 + Bias, 56 + Bias, 64 + Bias, 68 + Bias};
OS << "\nElf file type is "
<< printEnum(Header->e_type, makeArrayRef(ElfObjectFileType)) << "\n"
- << "Entry point " << format_hex(Header->e_entry, 1) << "\n"
+ << "Entry point " << format_hex(Header->e_entry, 3) << "\n"
<< "There are " << Header->e_phnum << " program headers,"
<< " starting at offset " << Header->e_phoff << "\n\n"
<< "Program Headers:\n";
More information about the llvm-commits
mailing list