]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: Modify MUSL_DYNAMIC_LINKER.
authorLulu Cheng <chenglulu@loongson.cn>
Sat, 18 Nov 2023 03:04:42 +0000 (11:04 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Mon, 20 Nov 2023 02:12:39 +0000 (10:12 +0800)
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

index 9616d6e8a0b8629720a844fd0122dafef682a4cb..e9f4bcef1d472d99bc42589740876954434a2968 100644 (file)
@@ -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 \