summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2016-05-11 09:41:15 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2016-05-11 09:41:15 +0000
commit71e64b2df9b9b8acad81c7ec463f67524e5ece78 (patch)
tree9c40e5c58978e067337b80e043c3afcbf6ce5f5f
parente94459fa6ca1fbdc3422d46af6163faadb36aabb (diff)
downloadbcm5719-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.cpp2
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>
OpenPOWER on IntegriCloud