mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-06 21:08:42 +00:00
36537f60e0
This patch adds two gcc commits to fix musl libdir path for loongarch64: * 13c5de14 ("LoongArch: Fix MUSL_DYNAMIC_LINKER") * a5f1bdfc ("LoongArch: Modify MUSL_DYNAMIC_LINKER.") * 2f7d4728 ("LoongArch: Use /lib instead of /lib64 as the library search path for MUSL.") Signed-off-by: WANG Rui <wangrui@loongson.cn>
46 lines
1.5 KiB
Diff
46 lines
1.5 KiB
Diff
From a5f1bdfcce95d825919e89d01cb00566e728a8c6 Mon Sep 17 00:00:00 2001
|
|
From: Lulu Cheng <chenglulu@loongson.cn>
|
|
Date: Sat, 18 Nov 2023 11:04:42 +0800
|
|
Subject: [PATCH] LoongArch: Modify MUSL_DYNAMIC_LINKER.
|
|
|
|
Use no suffix at all in the musl dynamic linker name for hard
|
|
float ABI. Use -sf and -sp suffixes in musl dynamic linker name
|
|
for soft float and single precision ABIs. The following table
|
|
outlines the musl interpreter names for the LoongArch64 ABI names.
|
|
|
|
musl interpreter | LoongArch64 ABI
|
|
--------------------------- | -----------------
|
|
ld-musl-loongarch64.so.1 | loongarch64-lp64d
|
|
ld-musl-loongarch64-sp.so.1 | loongarch64-lp64f
|
|
ld-musl-loongarch64-sf.so.1 | loongarch64-lp64s
|
|
|
|
gcc/ChangeLog:
|
|
|
|
* config/loongarch/gnu-user.h (MUSL_ABI_SPEC): Modify suffix.
|
|
|
|
(cherry picked from commit 8bccee51f0deac64b79cd9ad75df599422f4c8ff)
|
|
---
|
|
gcc/config/loongarch/gnu-user.h | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/gcc/config/loongarch/gnu-user.h b/gcc/config/loongarch/gnu-user.h
|
|
index fa1a5211419..5f1bd60ada3 100644
|
|
--- a/gcc/config/loongarch/gnu-user.h
|
|
+++ b/gcc/config/loongarch/gnu-user.h
|
|
@@ -34,9 +34,9 @@ along with GCC; see the file COPYING3. If not see
|
|
"/lib" ABI_GRLEN_SPEC "/ld-linux-loongarch-" ABI_SPEC ".so.1"
|
|
|
|
#define MUSL_ABI_SPEC \
|
|
- "%{mabi=lp64d:-lp64d}" \
|
|
- "%{mabi=lp64f:-lp64f}" \
|
|
- "%{mabi=lp64s:-lp64s}"
|
|
+ "%{mabi=lp64d:}" \
|
|
+ "%{mabi=lp64f:-sp}" \
|
|
+ "%{mabi=lp64s:-sf}"
|
|
|
|
#undef MUSL_DYNAMIC_LINKER
|
|
#define MUSL_DYNAMIC_LINKER \
|
|
--
|
|
2.44.0
|
|
|