Skip to content

Commit

Permalink
cmd/link: enable linking on openbsd/riscv64
Browse files Browse the repository at this point in the history
Updates #55999

Change-Id: I6e48e6649e19a9b2d776745c05eefb3995b6dd00
Reviewed-on: https://go-review.googlesource.com/c/go/+/518625
Reviewed-by: Aaron Bieber <[email protected]>
Run-TryBot: Joel Sing <[email protected]>
Reviewed-by: Keith Randall <[email protected]>
Reviewed-by: Keith Randall <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Auto-Submit: Keith Randall <[email protected]>
  • Loading branch information
4a6f656c authored and gopherbot committed Oct 3, 2023
1 parent 53827ba commit 95ef1e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/link/internal/riscv64/obj.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Expand All @@ -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 {
Expand Down

0 comments on commit 95ef1e7

Please sign in to comment.