commit | b0d0eb206527b43c771933602e147bbd7b471082 | [log] [tgz] |
---|---|---|
author | Stephen Hines <[email protected]> | Tue Mar 08 00:18:09 2016 -0800 |
committer | Stephen Hines <[email protected]> | Tue Mar 08 01:16:01 2016 -0800 |
tree | 86ab1560a7117ab943903579113b5146c992f0c2 | |
parent | a4e968f7c0528fb5bc8d80d83ae0b061f965f2b1 [diff] [blame] |
Rebase mclinker for LLVM update to r256229. Bug: http://b/26987366 Change-Id: Id2f7c480516247f5faef2afef23061cf5433c4b3
diff --git a/lib/Object/ObjectLinker.cpp b/lib/Object/ObjectLinker.cpp index 4d8ffeb..a9813d9 100644 --- a/lib/Object/ObjectLinker.cpp +++ b/lib/Object/ObjectLinker.cpp
@@ -986,9 +986,8 @@ break; } } else { - std::memcpy(target_addr, - &pReloc.target(), - pReloc.size(*m_LDBackend.getRelocator()) / 8); + std::memcpy(target_addr, &pReloc.target(), + (pReloc.size(*m_LDBackend.getRelocator()) + 7) / 8); } }