Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1873bd3

Browse files
heihernikic
authored andcommittedFeb 17, 2025
Default to the medium code model for the loongarch64-linux toolchains
The medium code model is already the default on the Rust side. Make sure that linked in C objects (e.g. from glibc) also use medium code model.
1 parent 97f6e4d commit 1873bd3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎src/ci/docker/host-x86_64/dist-loongarch64-linux/loongarch64-unknown-linux-gnu.defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ CT_ARCH_LOONGARCH=y
77
# CT_DEMULTILIB is not set
88
CT_ARCH_USE_MMU=y
99
CT_ARCH_ARCH="loongarch64"
10+
CT_TARGET_CFLAGS="-mcmodel=medium"
11+
CT_TARGET_LDFLAGS="-mcmodel=medium"
1012
CT_KERNEL_LINUX=y
1113
CT_LINUX_V_5_19=y
1214
CT_GLIBC_V_2_36=y

‎src/ci/docker/host-x86_64/dist-loongarch64-musl/loongarch64-unknown-linux-musl.defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ CT_ARCH_LOONGARCH=y
77
# CT_DEMULTILIB is not set
88
CT_ARCH_USE_MMU=y
99
CT_ARCH_ARCH="loongarch64"
10+
CT_TARGET_CFLAGS="-mcmodel=medium"
11+
CT_TARGET_LDFLAGS="-mcmodel=medium"
1012
CT_KERNEL_LINUX=y
1113
CT_LINUX_V_5_19=y
1214
CT_LIBC_MUSL=y

0 commit comments

Comments
 (0)
Failed to load comments.