mac80211: update to version 5.9.1
[openwrt/staging/nbd.git] / toolchain / gcc / patches-13.x / 401-LoongArch-Modify-MUSL_DYNAMIC_LINKER.patch
1 From 8bccee51f0deac64b79cd9ad75df599422f4c8ff Mon Sep 17 00:00:00 2001
2 From: Lulu Cheng <chenglulu@loongson.cn>
3 Date: Sat, 18 Nov 2023 11:04:42 +0800
4 Subject: [PATCH] LoongArch: Modify MUSL_DYNAMIC_LINKER.
5
6 Use no suffix at all in the musl dynamic linker name for hard
7 float ABI. Use -sf and -sp suffixes in musl dynamic linker name
8 for soft float and single precision ABIs. The following table
9 outlines the musl interpreter names for the LoongArch64 ABI names.
10
11 musl interpreter | LoongArch64 ABI
12 --------------------------- | -----------------
13 ld-musl-loongarch64.so.1 | loongarch64-lp64d
14 ld-musl-loongarch64-sp.so.1 | loongarch64-lp64f
15 ld-musl-loongarch64-sf.so.1 | loongarch64-lp64s
16
17 gcc/ChangeLog:
18
19 * config/loongarch/gnu-user.h (MUSL_ABI_SPEC): Modify suffix.
20 ---
21 gcc/config/loongarch/gnu-user.h | 6 +++---
22 1 file changed, 3 insertions(+), 3 deletions(-)
23
24 diff --git a/gcc/config/loongarch/gnu-user.h b/gcc/config/loongarch/gnu-user.h
25 index 9616d6e8a0b..e9f4bcef1d4 100644
26 --- a/gcc/config/loongarch/gnu-user.h
27 +++ b/gcc/config/loongarch/gnu-user.h
28 @@ -34,9 +34,9 @@ along with GCC; see the file COPYING3. If not see
29 "/lib" ABI_GRLEN_SPEC "/ld-linux-loongarch-" ABI_SPEC ".so.1"
30
31 #define MUSL_ABI_SPEC \
32 - "%{mabi=lp64d:-lp64d}" \
33 - "%{mabi=lp64f:-lp64f}" \
34 - "%{mabi=lp64s:-lp64s}"
35 + "%{mabi=lp64d:}" \
36 + "%{mabi=lp64f:-sp}" \
37 + "%{mabi=lp64s:-sf}"
38
39 #undef MUSL_DYNAMIC_LINKER
40 #define MUSL_DYNAMIC_LINKER \
41 --
42 2.39.3
43