forked from OSchip/llvm-project
[ELF] - Fixed failture of mips-64-got.s on x32 configuration.
win32 was my case. Before that change test failed with next error for me: 23> ******************** TEST 'lld :: ELF/mips-64-got.s' FAILED ******************** .... 23> Command 3 Stderr: 23> relocation R_MIPS_GOT_PAGE out of range llvm-svn: 269166
This commit is contained in:
parent
e94459fa6c
commit
71e64b2df9
|
|
@ -180,7 +180,7 @@ GotSection<ELFT>::getMipsLocalEntryOffset(uintX_t EntryValue) {
|
|||
size_t NewIndex = MipsLocalGotPos.size() + 2;
|
||||
auto P = MipsLocalGotPos.insert(std::make_pair(EntryValue, NewIndex));
|
||||
assert(!P.second || MipsLocalGotPos.size() <= MipsLocalEntries);
|
||||
return P.first->second * sizeof(uintX_t) - MipsGPOffset;
|
||||
return (uintX_t)P.first->second * sizeof(uintX_t) - MipsGPOffset;
|
||||
}
|
||||
|
||||
template <class ELFT>
|
||||
|
|
|
|||
Loading…
Reference in New Issue