Non-darwin gcc should default to static relocation to match gcc.
authorEvan Cheng <evan.cheng@apple.com>
Mon, 4 Dec 2006 18:07:10 +0000 (18:07 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 4 Dec 2006 18:07:10 +0000 (18:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32184 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86TargetMachine.cpp

index 78f7324c22fb4acffe501d363885cfbfd81ec992..9aca10e86f5b2d65a3e101863469e698c9570544 100644 (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)