* [PATCH] LoongArch: Modify MUSL_DYNAMIC_LINKER.
@ 2023-11-18 3:15 Lulu Cheng
2023-11-20 2:29 ` Re:[pushed and backport] " chenglulu
0 siblings, 1 reply; 2+ messages in thread
From: Lulu Cheng @ 2023-11-18 3:15 UTC (permalink / raw)
To: gcc-patches; +Cc: xry111, i, xuchenghua, lixing, huajingyun, Lulu Cheng
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.
---
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 9616d6e8a0b..e9f4bcef1d4 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.31.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re:[pushed and backport] [PATCH] LoongArch: Modify MUSL_DYNAMIC_LINKER.
2023-11-18 3:15 [PATCH] LoongArch: Modify MUSL_DYNAMIC_LINKER Lulu Cheng
@ 2023-11-20 2:29 ` chenglulu
0 siblings, 0 replies; 2+ messages in thread
From: chenglulu @ 2023-11-20 2:29 UTC (permalink / raw)
To: gcc-patches; +Cc: xry111, i, xuchenghua, lixing, huajingyun
pushed to r14-5601
backport to r13-8085 and r12-9995.
r12 and r13 simultaneously synchronized the patch that changed '/lib64'
to '/lib'.
在 2023/11/18 上午11:15, Lulu Cheng 写道:
> 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.
> ---
> 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 9616d6e8a0b..e9f4bcef1d4 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 \
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-11-20 2:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-18 3:15 [PATCH] LoongArch: Modify MUSL_DYNAMIC_LINKER Lulu Cheng
2023-11-20 2:29 ` Re:[pushed and backport] " chenglulu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).