forked from OSchip/llvm-project
Make "Size" column in the map file one characters shorter.
Previously, "size" column is 9 characters long which is too long at least for 32-bit (because at maximum it needs 8 columns). This patch make it one column shorter than before. That's also a reasonable default for 64-bit. llvm-svn: 329317
This commit is contained in:
parent
deaf4f354e
commit
4e150c4c88
|
@ -47,9 +47,9 @@ static const std::string Indent16 = " "; // 16 spaces
|
|||
static void writeHeader(raw_ostream &OS, uint64_t VMA, uint64_t LMA,
|
||||
uint64_t Size, uint64_t Align) {
|
||||
if (Config->Is64)
|
||||
OS << format("%16llx %16llx %9llx %5lld ", VMA, LMA, Size, Align);
|
||||
OS << format("%16llx %16llx %8llx %5lld ", VMA, LMA, Size, Align);
|
||||
else
|
||||
OS << format("%8llx %8llx %9llx %5lld ", VMA, LMA, Size, Align);
|
||||
OS << format("%8llx %8llx %8llx %5lld ", VMA, LMA, Size, Align);
|
||||
}
|
||||
|
||||
// Returns a list of all symbols that we want to print out.
|
||||
|
@ -174,8 +174,8 @@ void elf::writeMapFile() {
|
|||
|
||||
// Print out the header line.
|
||||
int W = Config->Is64 ? 16 : 8;
|
||||
OS << right_justify("VMA", W) << ' ' << right_justify("LMA", W) << ' '
|
||||
<< right_justify("Size", 9) << " Align Out In Symbol\n";
|
||||
OS << right_justify("VMA", W) << ' ' << right_justify("LMA", W)
|
||||
<< " Size Align Out In Symbol\n";
|
||||
|
||||
for (BaseCommand *Base : Script->SectionCommands) {
|
||||
if (auto *Cmd = dyn_cast<SymbolAssignment>(Base)) {
|
||||
|
|
Loading…
Reference in New Issue