From e0a5fae676370e1a68925d338629c40240b1ff9b Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 4 Oct 2019 11:53:17 +0200 Subject: [PATCH] cmd/link/internal/arm64: add support for freebsd/arm64 Updates #24715 Change-Id: If5d9591a820f6e921e69e722d46bf91d2ae738cb Reviewed-on: https://go-review.googlesource.com/c/go/+/198543 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- src/cmd/link/internal/arm64/obj.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cmd/link/internal/arm64/obj.go b/src/cmd/link/internal/arm64/obj.go index 7c6662302f5..a63e353cd60 100644 --- a/src/cmd/link/internal/arm64/obj.go +++ b/src/cmd/link/internal/arm64/obj.go @@ -59,7 +59,7 @@ func Init() (*sys.Arch, ld.Arch) { Linuxdynld: "/lib/ld-linux-aarch64.so.1", - Freebsddynld: "XXX", + Freebsddynld: "/usr/libexec/ld-elf.so.1", Openbsddynld: "/usr/libexec/ld.so", Netbsddynld: "/libexec/ld.elf_so", Dragonflydynld: "XXX", @@ -85,6 +85,7 @@ func archinit(ctxt *ld.Link) { } case objabi.Hlinux, /* arm64 elf */ + objabi.Hfreebsd, objabi.Hnetbsd, objabi.Hopenbsd: ld.Elfinit(ctxt)