aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-01-21 22:45:15 +0000
committerTanya Lattner <tonic@nondot.org>2008-01-21 22:45:15 +0000
commit9526723ee0f38c1b0dbf92a910063006a7b14aae (patch)
tree57f4e7087c97dc228f1fd4da4a893b21b91c2fd2
parent923aaa078a8f150df3ac27a9ea94ed5d8ea2c42f (diff)
Merge from mainline.
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_22@46225 91177308-0d34-0410-b5e6-96231b3b80d8
-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;