1
0
mirror of https://github.com/golang/go synced 2024-11-18 11:55:01 -07:00

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>
This commit is contained in:
Joel Sing 2022-09-18 02:36:20 +10:00 committed by Gopher Robot
parent 53827ba49e
commit 95ef1e7efc

View File

@ -42,7 +42,7 @@ func Init() (*sys.Arch, ld.Arch) {
Freebsddynld: "/usr/libexec/ld-elf.so.1", Freebsddynld: "/usr/libexec/ld-elf.so.1",
Netbsddynld: "XXX", Netbsddynld: "XXX",
Openbsddynld: "XXX", Openbsddynld: "/usr/libexec/ld.so",
Dragonflydynld: "XXX", Dragonflydynld: "XXX",
Solarisdynld: "XXX", Solarisdynld: "XXX",
@ -57,7 +57,7 @@ func Init() (*sys.Arch, ld.Arch) {
func archinit(ctxt *ld.Link) { func archinit(ctxt *ld.Link) {
switch ctxt.HeadType { switch ctxt.HeadType {
case objabi.Hlinux, objabi.Hfreebsd: case objabi.Hlinux, objabi.Hfreebsd, objabi.Hopenbsd:
ld.Elfinit(ctxt) ld.Elfinit(ctxt)
ld.HEADR = ld.ELFRESERVE ld.HEADR = ld.ELFRESERVE
if *ld.FlagRound == -1 { if *ld.FlagRound == -1 {