commit | b21d9aebba7e45ddcbce61dd501000049cefb335 | [log] [tgz] |
---|---|---|
author | Michael Liao <michael.liao@intel.com> | Tue Oct 16 19:49:51 2012 +0000 |
committer | Michael Liao <michael.liao@intel.com> | Tue Oct 16 19:49:51 2012 +0000 |
tree | 8107f1e0eaa035372914b052fd714205d3b80954 | |
parent | 59de622e8f2742c16b5a305ac5fe6d0814e7786b [diff] [blame] |
Check .rela instead of ELF64 for the compensation vaue resetting git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166051 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp index 6e37b5c..b8b3188 100644 --- a/lib/MC/ELFObjectWriter.cpp +++ b/lib/MC/ELFObjectWriter.cpp
@@ -733,8 +733,7 @@ Index = -1; } Addend = Value; - // Compensate for the addend on i386. - if (is64Bit()) + if (hasRelocationAddend()) Value = 0; }