summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/ELFObjectWriter.cpp
diff options
context:
space:
mode:
authorMichael Liao <michael.liao@intel.com>2012-10-16 19:49:51 +0000
committerMichael Liao <michael.liao@intel.com>2012-10-16 19:49:51 +0000
commitd6f3168a08fabc3c2ef2451fdf3518dbf2da88ca (patch)
tree00c458771a6c9103c39041d785a9bbd3b0aee6fc /llvm/lib/MC/ELFObjectWriter.cpp
parent25dcab1eaa47564c8eb913954c59f74da4b874ad (diff)
downloadbcm5719-llvm-d6f3168a08fabc3c2ef2451fdf3518dbf2da88ca.tar.gz
bcm5719-llvm-d6f3168a08fabc3c2ef2451fdf3518dbf2da88ca.zip
Check .rela instead of ELF64 for the compensation vaue resetting
llvm-svn: 166051
Diffstat (limited to 'llvm/lib/MC/ELFObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/ELFObjectWriter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/MC/ELFObjectWriter.cpp b/llvm/lib/MC/ELFObjectWriter.cpp
index 6e37b5c1a03..b8b3188ce48 100644
--- a/llvm/lib/MC/ELFObjectWriter.cpp
+++ b/llvm/lib/MC/ELFObjectWriter.cpp
@@ -733,8 +733,7 @@ void ELFObjectWriter::RecordRelocation(const MCAssembler &Asm,
Index = -1;
}
Addend = Value;
- // Compensate for the addend on i386.
- if (is64Bit())
+ if (hasRelocationAddend())
Value = 0;
}
OpenPOWER on IntegriCloud