]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link/internal/loong64: correct the musl dynamic linker path
authorlimeidan <limeidan@loongson.cn>
Fri, 1 Mar 2024 03:13:21 +0000 (11:13 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 23 May 2024 18:50:04 +0000 (18:50 +0000)
Musl libc already supports loongarch64, the dynamic linker path is the
same as other architectures: /lib/ld-musl-$ARCH.so.1

Ref: https://git.musl-libc.org/cgit/musl/tree/INSTALL#n141

Change-Id: Ie31d4254f6e14a5d634b2a7b5fa4c6270e2c0dc7
Reviewed-on: https://go-review.googlesource.com/c/go/+/569475
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: sophie zhao <zhaoxiaolin@loongson.cn>
Reviewed-by: Qiqi Huang <huangqiqi@loongson.cn>
src/cmd/link/internal/loong64/obj.go

index b68ed494f6960ebe671c33211b8d13a194f73afb..06ac5302ccd655a6999555bfa54083cdfe67c678 100644 (file)
@@ -30,7 +30,7 @@ func Init() (*sys.Arch, ld.Arch) {
 
                ELF: ld.ELFArch{
                        Linuxdynld:     "/lib64/ld-linux-loongarch-lp64d.so.1",
-                       LinuxdynldMusl: "/lib64/ld-musl-loongarch.so.1",
+                       LinuxdynldMusl: "/lib/ld-musl-loongarch.so.1",
                        Freebsddynld:   "XXX",
                        Openbsddynld:   "XXX",
                        Netbsddynld:    "XXX",