<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 23, 2016 at 11:16 AM, Rafael Espindola via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: rafael<br>
Date: Wed Nov 23 13:16:20 2016<br>
New Revision: 287799<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=287799&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=287799&view=rev</a><br>
Log:<br>
Fix this on 32 bit hosts.<br>
<br>
Looks like we have no 32 bit bot that builds with mips support.<br>
<br>
Modified:<br>
lld/trunk/ELF/<wbr>SyntheticSections.cpp<br>
<br>
Modified: lld/trunk/ELF/<wbr>SyntheticSections.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=287799&r1=287798&r2=287799&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/lld/trunk/ELF/<wbr>SyntheticSections.cpp?rev=<wbr>287799&r1=287798&r2=287799&<wbr>view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- lld/trunk/ELF/<wbr>SyntheticSections.cpp (original)<br>
+++ lld/trunk/ELF/<wbr>SyntheticSections.cpp Wed Nov 23 13:16:20 2016<br>
@@ -178,7 +178,7 @@ template <class ELFT> void MipsOptionsSe<br>
<br>
if (!Config->Relocatable)<br>
Reginfo.ri_gp_value = In<ELFT>::MipsGot->getVA() + MipsGPOffset;<br>
- memcpy(Buf + sizeof(Options), &Reginfo, sizeof(Reginfo));<br>
+ memcpy(Buf + sizeof(typename ELFT::uint), &Reginfo, sizeof(Reginfo));<br></blockquote><div><br></div><div>Probably sizeof(*Options) is better.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
}<br>
<br>
template <class ELFT><br>
<br>
<br>
______________________________<wbr>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div></div>