Non-darwin gcc should default to static relocation to match gcc.

llvm-svn: 32184
This commit is contained in:
Evan Cheng 2006-12-04 18:07:10 +00:00
parent bc0c02e746
commit 11e73ffe93

View File

@ -113,7 +113,7 @@ X86TargetMachine::X86TargetMachine(const Module &M, const std::string &FS, bool
if (Subtarget.isTargetDarwin())
setRelocationModel(Reloc::DynamicNoPIC);
else
setRelocationModel(Reloc::PIC_);
setRelocationModel(Reloc::Static);
if (Subtarget.is64Bit()) {
// No DynamicNoPIC support under X86-64.
if (getRelocationModel() == Reloc::DynamicNoPIC)