mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Non-darwin gcc should default to static relocation to match gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32184 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0650378757
commit
2c312adac9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user