From 7bfbd627d29c5738c516b5783db33b82f17cdd9f Mon Sep 17 00:00:00 2001 From: liushuyu Date: Fri, 26 May 2023 14:33:29 -0600 Subject: [PATCH] arch/loongson2f.sh: fix RUSTFLAGS ... * Targets MIPS III * Use xgot linkage (see https://github.com/rust-lang/rust/pull/111772) --- arch/loongson2f.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/loongson2f.sh b/arch/loongson2f.sh index 6965c6c..e1d861a 100644 --- a/arch/loongson2f.sh +++ b/arch/loongson2f.sh @@ -12,6 +12,7 @@ CFLAGS_GCC_ARCH='-mloongson-mmi -Wa,-mfix-loongson2f-nop ' CFLAGS_GCC_OPTI_LTO="${CFLAGS_COMMON_OPTI_LTO} -flto-partition=none " LDFLAGS_GCC_OPTI_LTO="${LDFLAGS_COMMON_OPTI_LTO} -mxgot -flto-partition=none " +RUSTFLAGS_COMMON_ARCH='-Ctarget-cpu=mips3 -Ctarget-features=+xgot ' RUSTFLAGS_COMMON_OPTI_LTO="${RUSTFLAGS_COMMON_OPTI_LTO} -Clink-arg=-Wl,-z,notext " # Position-independent executable buildmode is not available on any mips architecture.