aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2022-09-18 02:36:20 +1000
committerGopher Robot <gobot@golang.org>2023-10-03 17:46:04 +0000
commit95ef1e7efc42a511b2aebff6c9391fec56462330 (patch)
treec47fcdea6f8259048129dc80eed989767add6a92 /src/cmd/link
parent53827ba49eb6afae541579c96c6f6b3df3605694 (diff)
downloadgo-95ef1e7efc42a511b2aebff6c9391fec56462330.tar.xz
cmd/link: enable linking on openbsd/riscv64
Updates #55999 Change-Id: I6e48e6649e19a9b2d776745c05eefb3995b6dd00 Reviewed-on: https://go-review.googlesource.com/c/go/+/518625 Reviewed-by: Aaron Bieber <deftly@gmail.com> Run-TryBot: Joel Sing <joel@sing.id.au> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/link')
-rw-r--r--src/cmd/link/internal/riscv64/obj.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/link/internal/riscv64/obj.go b/src/cmd/link/internal/riscv64/obj.go
index a18e8369fd..940a8d611c 100644
--- a/src/cmd/link/internal/riscv64/obj.go
+++ b/src/cmd/link/internal/riscv64/obj.go
@@ -42,7 +42,7 @@ func Init() (*sys.Arch, ld.Arch) {
Freebsddynld: "/usr/libexec/ld-elf.so.1",
Netbsddynld: "XXX",
- Openbsddynld: "XXX",
+ Openbsddynld: "/usr/libexec/ld.so",
Dragonflydynld: "XXX",
Solarisdynld: "XXX",
@@ -57,7 +57,7 @@ func Init() (*sys.Arch, ld.Arch) {
func archinit(ctxt *ld.Link) {
switch ctxt.HeadType {
- case objabi.Hlinux, objabi.Hfreebsd:
+ case objabi.Hlinux, objabi.Hfreebsd, objabi.Hopenbsd:
ld.Elfinit(ctxt)
ld.HEADR = ld.ELFRESERVE
if *ld.FlagRound == -1 {