1
Fork 0

Fix linkage for large binaries on mips64 platforms ...

... by enabling xgot feature

Co-Authored-By: Zixing Liu <zixing.liu@canonical.com>
This commit is contained in:
Ximin Luo 2023-05-18 22:21:59 -06:00 committed by liushuyu
parent 498553fc04
commit b65c2afdfd
No known key found for this signature in database
GPG key ID: 23D1CE4534419437
4 changed files with 16 additions and 6 deletions

View file

@ -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(),

View file

@ -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(),