Rollup merge of #111772 - liushuyu:ubuntu/mips64-linkage, r=jackh726
Fix linkage for large binaries on mips64 platforms This pull request fixes the linkage for large binaries on mips64 platforms by enabling the `xgot` feature in LLVM. It is well understood that the generated binary will gain a hefty performance penalty where the external symbol jumps now cost at least three instructions each. Also, this pull request does not address the same issue on the mips32 counterparts (due to being unable to test the changes thoroughly). Should fix #52108
This commit is contained in:
@@ -12,7 +12,7 @@ pub fn target() -> Target {
|
||||
endian: Endian::Big,
|
||||
// NOTE(mips64r2) matches C toolchain
|
||||
cpu: "mips64r2".into(),
|
||||
features: "+mips64r2".into(),
|
||||
features: "+mips64r2,+xgot".into(),
|
||||
max_atomic_width: Some(64),
|
||||
mcount: "_mcount".into(),
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ pub fn target() -> Target {
|
||||
abi: "abi64".into(),
|
||||
// NOTE(mips64r2) matches C toolchain
|
||||
cpu: "mips64r2".into(),
|
||||
features: "+mips64r2".into(),
|
||||
features: "+mips64r2,+xgot".into(),
|
||||
max_atomic_width: Some(64),
|
||||
mcount: "_mcount".into(),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user