Skip to content

Commit a4f9c2a

Browse files
4a6f656cbradfitz
authored andcommitted
cmd/link: add support for openbsd/arm64
Updates #31656 Change-Id: Iff0b2c2b2ca95f8c246436e35a22b70efb8e61d3 Reviewed-on: https://go-review.googlesource.com/c/go/+/174121 Reviewed-by: Brad Fitzpatrick <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 6c04c26 commit a4f9c2a

File tree

1 file changed

+3
-2
lines changed
  • src/cmd/link/internal/arm64

1 file changed

+3
-2
lines changed

src/cmd/link/internal/arm64/obj.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func Init() (*sys.Arch, ld.Arch) {
6060
Linuxdynld: "/lib/ld-linux-aarch64.so.1",
6161

6262
Freebsddynld: "XXX",
63-
Openbsddynld: "XXX",
63+
Openbsddynld: "/usr/libexec/ld.so",
6464
Netbsddynld: "/libexec/ld.elf_so",
6565
Dragonflydynld: "XXX",
6666
Solarisdynld: "XXX",
@@ -85,7 +85,8 @@ func archinit(ctxt *ld.Link) {
8585
}
8686

8787
case objabi.Hlinux, /* arm64 elf */
88-
objabi.Hnetbsd:
88+
objabi.Hnetbsd,
89+
objabi.Hopenbsd:
8990
ld.Elfinit(ctxt)
9091
ld.HEADR = ld.ELFRESERVE
9192
if *ld.FlagTextAddr == -1 {

0 commit comments

Comments
 (0)