[lld] r258766 - Fix MSVC build.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 25 17:30:07 PST 2016
Author: rafael
Date: Mon Jan 25 19:30:07 2016
New Revision: 258766
URL: http://llvm.org/viewvc/llvm-project?rev=258766&view=rev
Log:
Fix MSVC build.
Modified:
lld/trunk/ELF/OutputSections.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=258766&r1=258765&r2=258766&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Mon Jan 25 19:30:07 2016
@@ -637,7 +637,7 @@ template <class ELFT> void DynamicSectio
Add({DT_PLTRELSZ, Out<ELFT>::RelaPlt->getSize()});
Add({Config->EMachine == EM_MIPS ? DT_MIPS_PLTGOT : DT_PLTGOT,
Out<ELFT>::GotPlt});
- Add({DT_PLTREL, Out<ELFT>::RelaPlt->isRela() ? DT_RELA : DT_REL});
+ Add({DT_PLTREL, uint64_t(Out<ELFT>::RelaPlt->isRela() ? DT_RELA : DT_REL)});
}
Add({DT_SYMTAB, Out<ELFT>::DynSymTab});
@@ -699,7 +699,7 @@ template <class ELFT> void DynamicSectio
Add({DT_FLAGS_1, DtFlags1});
if (!Config->Entry.empty())
- Add({DT_DEBUG, (uintX_t)0});
+ Add({DT_DEBUG, (uint64_t)0});
if (Config->EMachine == EM_MIPS) {
Add({DT_MIPS_RLD_VERSION, 1});
More information about the llvm-commits
mailing list