aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2020-10-14 21:15:37 -0400
committerCherry Zhang <cherryyz@google.com>2020-10-20 02:25:52 +0000
commit627959eb04ee0edc4a985a7526ed7fe838ad2573 (patch)
treebfc5a2a0b4c2dd9a92d2f0c993ba38233986b332 /misc
parentbccdd31252c9771ef2e8dae0402251163a081b56 (diff)
downloadgo-627959eb04ee0edc4a985a7526ed7fe838ad2573.tar.gz
go-627959eb04ee0edc4a985a7526ed7fe838ad2573.zip
cmd/link: support cgo internal/linking on darwin/arm64
Cgo programs work as well. Still not enabled by default for now. Enable internal linking tests. Updates #38485. Change-Id: I8324a5c263fba221eb4e67d71207ca84fa241e6c Reviewed-on: https://go-review.googlesource.com/c/go/+/263637 Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'misc')
-rw-r--r--misc/cgo/test/issue4029.c2
-rw-r--r--misc/cgo/test/issue4029.go3
-rw-r--r--misc/cgo/test/issue4029w.go2
3 files changed, 4 insertions, 3 deletions
diff --git a/misc/cgo/test/issue4029.c b/misc/cgo/test/issue4029.c
index e6a777fe64..e79c5a709c 100644
--- a/misc/cgo/test/issue4029.c
+++ b/misc/cgo/test/issue4029.c
@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file.
// +build !windows,!static
-// +build !darwin !internal_pie
+// +build !darwin !internal_pie,!arm64
#include <stdint.h>
#include <dlfcn.h>
diff --git a/misc/cgo/test/issue4029.go b/misc/cgo/test/issue4029.go
index 8602ce19e2..b2d131833a 100644
--- a/misc/cgo/test/issue4029.go
+++ b/misc/cgo/test/issue4029.go
@@ -3,10 +3,11 @@
// license that can be found in the LICENSE file.
// +build !windows,!static
-// +build !darwin !internal_pie
+// +build !darwin !internal_pie,!arm64
// Excluded in darwin internal linking PIE mode, as dynamic export is not
// supported.
+// Excluded in internal linking mode on darwin/arm64, as it is always PIE.
package cgotest
diff --git a/misc/cgo/test/issue4029w.go b/misc/cgo/test/issue4029w.go
index de0cf2138a..b969bdd0fe 100644
--- a/misc/cgo/test/issue4029w.go
+++ b/misc/cgo/test/issue4029w.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build windows static darwin,internal_pie
+// +build windows static darwin,internal_pie darwin,arm64
package cgotest