mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
MCELF: Fix a thinko of mine.
llvm-svn: 112203
This commit is contained in:
parent
640cc8ce83
commit
537450a5e8
@ -480,7 +480,8 @@ void ELFObjectWriterImpl::RecordRelocation(const MCAssembler &Asm,
|
||||
Value += Layout.getSymbolAddress(&SD) - Layout.getSymbolAddress(Base);
|
||||
Addend = Value;
|
||||
// Compensate for the addend on i386.
|
||||
FixedValue = Is64Bit ? 0 : Value;
|
||||
if (Is64Bit)
|
||||
Value = 0;
|
||||
} else {
|
||||
if (F) {
|
||||
// Index of the section in .symtab against this symbol
|
||||
@ -495,6 +496,7 @@ void ELFObjectWriterImpl::RecordRelocation(const MCAssembler &Asm,
|
||||
return;
|
||||
}
|
||||
}
|
||||
FixedValue = Value;
|
||||
}
|
||||
|
||||
// determine the type of the relocation
|
||||
|
Loading…
Reference in New Issue
Block a user