1
Fork 0

change to static relocation model

This commit is contained in:
kirk 2025-01-05 05:04:34 +00:00
parent 139ca10f65
commit ff7f818fc7

View file

@ -1,5 +1,5 @@
use crate::abi::Endian;
use crate::spec::{CodeModel, PanicStrategy, Target, TargetOptions};
use crate::spec::{CodeModel, PanicStrategy, RelocModel, Target, TargetOptions};
pub(crate) fn target() -> Target {
let options = TargetOptions {
@ -13,6 +13,7 @@ pub(crate) fn target() -> Target {
has_rpath: false,
// should be soft-float
llvm_floatabi: None,
relocation_model: RelocModel::Static,
..Default::default()
};