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:
parent
d3382d44bb
commit
05f5d27eb5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user