Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
arch/loongson2f.sh: fix RUSTFLAGS ...
Browse files Browse the repository at this point in the history
* Targets MIPS III
* Use xgot linkage (see rust-lang/rust#111772)
  • Loading branch information
liushuyu committed May 26, 2023
1 parent 24382c8 commit 7bfbd62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/loongson2f.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7bfbd62

Please sign in to comment.