diff options
author | George Rimar <grimar@accesssoftek.com> | 2016-05-11 09:41:15 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2016-05-11 09:41:15 +0000 |
commit | 71e64b2df9b9b8acad81c7ec463f67524e5ece78 (patch) | |
tree | 9c40e5c58978e067337b80e043c3afcbf6ce5f5f | |
parent | e94459fa6ca1fbdc3422d46af6163faadb36aabb (diff) | |
download | bcm5719-llvm-71e64b2df9b9b8acad81c7ec463f67524e5ece78.tar.gz bcm5719-llvm-71e64b2df9b9b8acad81c7ec463f67524e5ece78.zip |
[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
-rw-r--r-- | lld/ELF/OutputSections.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 676eb8029ef..76e5cd75e23 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -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> |