mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Make getOther ELF only.
No other format has this field. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240774 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1066,7 +1066,7 @@ relocation_iterator RuntimeDyldELF::processRelocationRef(
|
||||
int64_t Addend = 0;
|
||||
if (Obj.hasRelocationAddend(RelI->getRawDataRefImpl()))
|
||||
Addend = *Obj.getRelocationAddend(RelI->getRawDataRefImpl());
|
||||
symbol_iterator Symbol = RelI->getSymbol();
|
||||
elf_symbol_iterator Symbol = RelI->getSymbol();
|
||||
|
||||
// Obtain the symbol name which is referenced in the relocation
|
||||
StringRef TargetName;
|
||||
@@ -1312,8 +1312,7 @@ relocation_iterator RuntimeDyldELF::processRelocationRef(
|
||||
} else {
|
||||
// In the ELFv2 ABI, a function symbol may provide a local entry
|
||||
// point, which must be used for direct calls.
|
||||
uint8_t SymOther;
|
||||
Symbol->getOther(SymOther);
|
||||
uint8_t SymOther = Symbol->getOther();
|
||||
Value.Addend += ELF::decodePPC64LocalEntryOffset(SymOther);
|
||||
}
|
||||
uint8_t *RelocTarget = Sections[Value.SectionID].Address + Value.Addend;
|
||||
|
Reference in New Issue
Block a user