aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineRelocation.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-21 22:27:27 +0000
committerChris Lattner <sabre@nondot.org>2008-01-21 22:27:27 +0000
commitc2f191cc2a5757d8e073c92f1c8e7ffaeb98d4b9 (patch)
tree2d1f577502aaba06c87e7296288883269bad3cb6 /include/llvm/CodeGen/MachineRelocation.h
parent5768c9658e719d8505f4adcc9c5e689052b22495 (diff)
downloadexternal_llvm-c2f191cc2a5757d8e073c92f1c8e7ffaeb98d4b9.tar.gz
external_llvm-c2f191cc2a5757d8e073c92f1c8e7ffaeb98d4b9.tar.bz2
external_llvm-c2f191cc2a5757d8e073c92f1c8e7ffaeb98d4b9.zip
Fix the failures in the PPC JIT by marking relocation entries for
external symbols (e.g. 'fmod') as needing a stub. This regression was introduced by Evan's jit patch here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20071231/056749.html With this fixed, the two ExecutionEngine failures are passing on ppc, and the ppc jit works on freebench and olden. This should be pulled into the 2.2 release branch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46222 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineRelocation.h')
-rw-r--r--include/llvm/CodeGen/MachineRelocation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineRelocation.h b/include/llvm/CodeGen/MachineRelocation.h
index 689881b291..fa23a4d1c4 100644
--- a/include/llvm/CodeGen/MachineRelocation.h
+++ b/include/llvm/CodeGen/MachineRelocation.h
@@ -141,7 +141,7 @@ public:
Result.ConstantVal = cst;
Result.TargetReloType = RelocationType;
Result.AddrType = isExtSym;
- Result.NeedStub = false;
+ Result.NeedStub = true;
Result.GOTRelative = GOTrelative;
Result.Target.ExtSym = ES;
return Result;