[go] cmd/link: correct libc dynamic linker path

0 views
Skip to first unread message

Meng Zhuo (Gerrit)

unread,
Jan 16, 2026, 11:20:09 PM (19 hours ago) Jan 16
to goph...@pubsubhelper.golang.org, Meng Zhuo, golang-co...@googlegroups.com

Meng Zhuo has uploaded the change for review

Commit message

cmd/link: correct libc dynamic linker path

Ref: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/issues/114

Fixes #77209
Change-Id: I8b575a95ad4e6a7e792514d7fcf9497599c1e404

Change diff

diff --git a/src/cmd/link/internal/riscv64/obj.go b/src/cmd/link/internal/riscv64/obj.go
index 940a8d6..87f4986 100644
--- a/src/cmd/link/internal/riscv64/obj.go
+++ b/src/cmd/link/internal/riscv64/obj.go
@@ -38,7 +38,8 @@
Machoreloc1: machoreloc1,

ELF: ld.ELFArch{
- Linuxdynld: "/lib/ld.so.1",
+ Linuxdynld: "/lib/ld-linux-riscv64-lp64d.so.1",
+ LinuxdynldMusl: "/lib/ld-musl-riscv64.so.1",

Freebsddynld: "/usr/libexec/ld-elf.so.1",
Netbsddynld: "XXX",

Change information

Files:
  • M src/cmd/link/internal/riscv64/obj.go
Change size: XS
Delta: 1 file changed, 2 insertions(+), 1 deletion(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I8b575a95ad4e6a7e792514d7fcf9497599c1e404
Gerrit-Change-Number: 737180
Gerrit-PatchSet: 1
Gerrit-Owner: Meng Zhuo <mengzh...@gmail.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

Quim Muntal (Gerrit)

unread,
1:47 AM (17 hours ago) 1:47 AM
to Meng Zhuo, goph...@pubsubhelper.golang.org, Ian Lance Taylor, Michael Hudson-Doyle, Russ Cox, Gopher Robot, golang-co...@googlegroups.com
Attention needed from Ian Lance Taylor, Meng Zhuo, Michael Hudson-Doyle and Russ Cox

Quim Muntal voted and added 1 comment

Votes added by Quim Muntal

Code-Review+1
Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Quim Muntal . resolved

Thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Ian Lance Taylor
  • Meng Zhuo
  • Michael Hudson-Doyle
  • Russ Cox
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I8b575a95ad4e6a7e792514d7fcf9497599c1e404
Gerrit-Change-Number: 737180
Gerrit-PatchSet: 1
Gerrit-Owner: Meng Zhuo <mengzh...@gmail.com>
Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
Gerrit-Reviewer: Michael Hudson-Doyle <michael...@canonical.com>
Gerrit-Reviewer: Quim Muntal <quimm...@gmail.com>
Gerrit-Reviewer: Russ Cox <r...@golang.org>
Gerrit-CC: Gopher Robot <go...@golang.org>
Gerrit-Attention: Russ Cox <r...@golang.org>
Gerrit-Attention: Michael Hudson-Doyle <michael...@canonical.com>
Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
Gerrit-Attention: Meng Zhuo <mengzh...@gmail.com>
Gerrit-Comment-Date: Sat, 17 Jan 2026 06:47:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
unsatisfied_requirement
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages