Index: lib/Target/PowerPC/PPCTargetMachine.cpp =================================================================== --- lib/Target/PowerPC/PPCTargetMachine.cpp +++ lib/Target/PowerPC/PPCTargetMachine.cpp @@ -214,11 +214,11 @@ if (TT.isOSDarwin()) return Reloc::DynamicNoPIC; - // Non-darwin 64-bit platforms are PIC by default. - if (TT.getArch() == Triple::ppc64 || TT.getArch() == Triple::ppc64le) + // Free BSD is PIC by default. + if (TT.isOSFreeBSD()) return Reloc::PIC_; - // 32-bit is static by default. + // Otherwise is static by default. return Reloc::Static; }