aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-11-08 07:22:33 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-11-08 07:22:33 +0000
commit103325179a65686d7e7dea3527d3a802b12e081e (patch)
treee192e3263bd755cde324a8b58c9bd5ed3c566af3 /lib/Target/ARM
parent771138ca915591d804f731e1e0e189cf0a2a6803 (diff)
downloadexternal_llvm-103325179a65686d7e7dea3527d3a802b12e081e.zip
external_llvm-103325179a65686d7e7dea3527d3a802b12e081e.tar.gz
external_llvm-103325179a65686d7e7dea3527d3a802b12e081e.tar.bz2
Fix relocation for calls to external symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r--lib/Target/ARM/ARMCodeEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMCodeEmitter.cpp b/lib/Target/ARM/ARMCodeEmitter.cpp
index 336c04d..1fefc0e 100644
--- a/lib/Target/ARM/ARMCodeEmitter.cpp
+++ b/lib/Target/ARM/ARMCodeEmitter.cpp
@@ -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())