[PATCH] D44899: [ELF] - Print LMA in a -Map file.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 30 00:56:53 PDT 2018
grimar added inline comments.
================
Comment at: ELF/MapFile.cpp:50
int W = Config->Is64 ? 16 : 8;
- OS << format("%0*llx %0*llx %5lld ", W, Addr, W, Size, Align);
+ OS << format("%*llx %*llx %*llx %5lld ", W, VMA, W, LMA, W, Size, Align);
}
----------------
ruiu wrote:
> grimar wrote:
> > ruiu wrote:
> > > Can you change this to
> > >
> > > "%*llx %9llx %*llx %5lld "
> > >
> > > ? I think size 16^9 should be enough for any section.
> > 64Gb? Maybe. It's not 640kb at least.
> >
> > I thought about dynamic column's width though.
> > I prepared a patch for that: D45018.
> You are misunderstanding that %9llx clips numbers to 9 columns. That won't happen. It just says that the default width is 9.
>
> If something is larger than that, the following fields are not vertically aligned, but that's not a big deal.
Oh. OK then.
https://reviews.llvm.org/D44899
More information about the llvm-commits
mailing list