diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2014-06-18 15:15:49 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2014-06-18 15:15:49 +0000 |
commit | 3fbbe94b9320d29d9be8e8064447c42b6c353352 (patch) | |
tree | 7ce5a8e0eead39b8b22aa6bfa8ee063c841521cf /include | |
parent | c39b18b306c7681cb155127096a56afbea24a08e (diff) | |
download | llvm-3fbbe94b9320d29d9be8e8064447c42b6c353352.tar.gz llvm-3fbbe94b9320d29d9be8e8064447c42b6c353352.tar.bz2 llvm-3fbbe94b9320d29d9be8e8064447c42b6c353352.tar.xz |
Support LE in RelocVisitor::visitELF_PPC64_*
Since we now support both LE and BE PPC64 variants, use of getAddend64BE
is no longer correct. Use the generic getELFRelocationAddend instead,
as was already done for Mips.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211170 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/RelocVisitor.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Object/RelocVisitor.h b/include/llvm/Object/RelocVisitor.h index a3aaf17f1d..5ca245057a 100644 --- a/include/llvm/Object/RelocVisitor.h +++ b/include/llvm/Object/RelocVisitor.h @@ -253,12 +253,14 @@ private: /// PPC64 ELF RelocToApply visitELF_PPC64_ADDR32(RelocationRef R, uint64_t Value) { - int64_t Addend = getAddend64BE(R); + int64_t Addend; + getELFRelocationAddend(R, Addend); uint32_t Res = (Value + Addend) & 0xFFFFFFFF; return RelocToApply(Res, 4); } RelocToApply visitELF_PPC64_ADDR64(RelocationRef R, uint64_t Value) { - int64_t Addend = getAddend64BE(R); + int64_t Addend; + getELFRelocationAddend(R, Addend); return RelocToApply(Value + Addend, 8); } |