1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Check .rela instead of ELF64 for the compensation vaue resetting

llvm-svn: 166051
This commit is contained in:
Michael Liao 2012-10-16 19:49:51 +00:00
parent d3382d44bb
commit 05f5d27eb5

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