change to static relocation model
This commit is contained in:
parent
139ca10f65
commit
ff7f818fc7
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
use crate::abi::Endian;
|
use crate::abi::Endian;
|
||||||
use crate::spec::{CodeModel, PanicStrategy, Target, TargetOptions};
|
use crate::spec::{CodeModel, PanicStrategy, RelocModel, Target, TargetOptions};
|
||||||
|
|
||||||
pub(crate) fn target() -> Target {
|
pub(crate) fn target() -> Target {
|
||||||
let options = TargetOptions {
|
let options = TargetOptions {
|
||||||
|
@ -13,6 +13,7 @@ pub(crate) fn target() -> Target {
|
||||||
has_rpath: false,
|
has_rpath: false,
|
||||||
// should be soft-float
|
// should be soft-float
|
||||||
llvm_floatabi: None,
|
llvm_floatabi: None,
|
||||||
|
relocation_model: RelocModel::Static,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue