diff options
author | Joel Sing <joel@sing.id.au> | 2021-07-16 03:06:18 +1000 |
---|---|---|
committer | Joel Sing <joel@sing.id.au> | 2021-11-03 09:23:34 +0000 |
commit | 6458b2e8db7c4529248934f7e491df02d1e89318 (patch) | |
tree | 3223ed2fd91bd11cb93847fd96e4fe299dd0572e /misc | |
parent | 5b213178e72b6031c9ec790bf9fe784c66b397e3 (diff) | |
download | go-6458b2e8db7c4529248934f7e491df02d1e89318.tar.gz go-6458b2e8db7c4529248934f7e491df02d1e89318.zip |
all: add support for c-archive and c-shared on linux/riscv64
This provides the runtime glue (_rt0_riscv64_linux_lib) for c-archive and c-shared
support, along with enabling both of these buildmodes on linux/riscv64.
Both misc/cgo/testcarchive and misc/cgo/testcshared now pass on this platform.
Fixes #47100
Change-Id: I7ad75b23ae1d592dbac60d15bba557668287711f
Reviewed-on: https://go-review.googlesource.com/c/go/+/334872
Trust: Joel Sing <joel@sing.id.au>
Run-TryBot: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cgo/testcshared/testdata/libgo2/dup2.go | 2 | ||||
-rw-r--r-- | misc/cgo/testcshared/testdata/libgo2/dup3.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/misc/cgo/testcshared/testdata/libgo2/dup2.go b/misc/cgo/testcshared/testdata/libgo2/dup2.go index d18f0b130d..d343aa54d9 100644 --- a/misc/cgo/testcshared/testdata/libgo2/dup2.go +++ b/misc/cgo/testcshared/testdata/libgo2/dup2.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 darwin dragonfly freebsd linux,!arm64 netbsd openbsd +// +build darwin dragonfly freebsd linux,!arm64,!riscv64 netbsd openbsd package main diff --git a/misc/cgo/testcshared/testdata/libgo2/dup3.go b/misc/cgo/testcshared/testdata/libgo2/dup3.go index c9c65a6e3c..459f0dc196 100644 --- a/misc/cgo/testcshared/testdata/libgo2/dup3.go +++ b/misc/cgo/testcshared/testdata/libgo2/dup3.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 linux,arm64 +// +build linux,arm64 linux,riscv64 package main |