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
This commit is contained in:
Michael Liao 2012-10-16 19:49:51 +00:00
parent 59de622e8f
commit b21d9aebba

View File

@ -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;
}