mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
Fix relocation for calls to external symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58893 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
771138ca91
commit
103325179a
@ -209,7 +209,7 @@ unsigned ARMCodeEmitter::getMachineOpValue(const MachineInstr &MI,
|
||||
else if (MO.isGlobal())
|
||||
emitGlobalAddress(MO.getGlobal(), ARM::reloc_arm_branch, true);
|
||||
else if (MO.isSymbol())
|
||||
emitExternalSymbolAddress(MO.getSymbolName(), ARM::reloc_arm_relative);
|
||||
emitExternalSymbolAddress(MO.getSymbolName(), ARM::reloc_arm_branch);
|
||||
else if (MO.isCPI())
|
||||
emitConstPoolAddress(MO.getIndex(), ARM::reloc_arm_cp_entry);
|
||||
else if (MO.isJTI())
|
||||
|
Loading…
x
Reference in New Issue
Block a user