diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp index 9b5701b65e9..ced492ccb95 100644 --- a/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -134,8 +134,8 @@ bool PPCTargetMachine::addPassesToEmitFile(PassManager &PM, } void PPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) { - // The JIT should use static relocation model. - TM.setRelocationModel(Reloc::Static); + // The JIT should use dynamic-no-pic relocation model. + TM.setRelocationModel(Reloc::DynamicNoPIC); // Run loop strength reduction before anything else. PM.add(createLoopStrengthReducePass());