summaryrefslogtreecommitdiffstats
path: root/lld/ELF/MapFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/MapFile.cpp')
-rw-r--r--lld/ELF/MapFile.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lld/ELF/MapFile.cpp b/lld/ELF/MapFile.cpp
index 648baa9d241..9f7a6f39184 100644
--- a/lld/ELF/MapFile.cpp
+++ b/lld/ELF/MapFile.cpp
@@ -35,8 +35,7 @@ using namespace lld::elf;
static void writeOutSecLine(raw_fd_ostream &OS, int Width, uint64_t Address,
uint64_t Size, uint64_t Align, StringRef Name) {
- OS << format_hex_no_prefix(Address, Width) << ' '
- << format_hex_no_prefix(Size, Width) << ' ' << format("%5x ", Align)
+ OS << format("%0*x %0*x %5x ", Width, Address, Width, Size, Align)
<< left_justify(Name, 7);
}
@@ -100,8 +99,7 @@ static void writeMapFile2(raw_fd_ostream &OS,
int Width = ELFT::Is64Bits ? 16 : 8;
OS << left_justify("Address", Width) << ' ' << left_justify("Size", Width)
- << ' ' << left_justify("Align", 5) << ' ' << left_justify("Out", 7) << ' '
- << left_justify("In", 7) << ' ' << left_justify("File", 7) << " Symbol\n";
+ << " Align Out In File Symbol\n";
for (OutputSectionBase *Sec : OutputSections) {
writeOutSecLine(OS, Width, Sec->Addr, Sec->Size, Sec->Addralign,
OpenPOWER on IntegriCloud