forked from OSchip/llvm-project
Fix this on 32 bit hosts.
Looks like we have no 32 bit bot that builds with mips support. llvm-svn: 287799
This commit is contained in:
parent
4056253c4d
commit
20b6d3d0d3
|
@ -178,7 +178,7 @@ template <class ELFT> void MipsOptionsSection<ELFT>::writeTo(uint8_t *Buf) {
|
|||
|
||||
if (!Config->Relocatable)
|
||||
Reginfo.ri_gp_value = In<ELFT>::MipsGot->getVA() + MipsGPOffset;
|
||||
memcpy(Buf + sizeof(Options), &Reginfo, sizeof(Reginfo));
|
||||
memcpy(Buf + sizeof(typename ELFT::uint), &Reginfo, sizeof(Reginfo));
|
||||
}
|
||||
|
||||
template <class ELFT>
|
||||
|
|
Loading…
Reference in New Issue