From 548adcdec4be1ff2a606502db15f71d64cc2c9e7 Mon Sep 17 00:00:00 2001 From: George Rimar Date: Mon, 16 Jan 2017 11:46:55 +0000 Subject: [PATCH] [COFF] - Fixed format in writeOutSecLine() The same as https://reviews.llvm.org/rL292102, fixes next testcases under msvs2015/win32: 25> Failing Tests (3): 25> lld :: COFF/lldmap.test 25> lld :: COFF/weak-external.test 25> lld :: COFF/weak-external3.test llvm-svn: 292104 --- lld/COFF/MapFile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lld/COFF/MapFile.cpp b/lld/COFF/MapFile.cpp index 00e4788f872d..05b65a3e00e6 100644 --- a/lld/COFF/MapFile.cpp +++ b/lld/COFF/MapFile.cpp @@ -36,7 +36,8 @@ using namespace lld::coff; static void writeOutSecLine(raw_fd_ostream &OS, uint64_t Address, uint64_t Size, uint64_t Align, StringRef Name) { - OS << format("%08x %08x %5x ", Address, Size, Align) << left_justify(Name, 7); + OS << format("%08llx %08llx %5llx ", Address, Size, Align) + << left_justify(Name, 7); } static void writeInSecLine(raw_fd_ostream &OS, uint64_t Address, uint64_t Size,