[PATCH] D44899: [ELF] - Print LMA in a -Map file.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 28 11:20:31 PDT 2018


ruiu 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);
 }
----------------
Can you change this to 

  "%*llx %9llx %*llx %5lld "

? I think size 16^9 should be enough for any section.


https://reviews.llvm.org/D44899





More information about the llvm-commits mailing list