mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
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:
parent
59de622e8f
commit
b21d9aebba
@ -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