]> Cypherpunks.ru repositories - gostls13.git/commit
all: add support for c-archive and c-shared on linux/riscv64
authorJoel Sing <joel@sing.id.au>
Thu, 15 Jul 2021 17:06:18 +0000 (03:06 +1000)
committerJoel Sing <joel@sing.id.au>
Wed, 3 Nov 2021 09:23:34 +0000 (09:23 +0000)
commit6458b2e8db7c4529248934f7e491df02d1e89318
tree3223ed2fd91bd11cb93847fd96e4fe299dd0572e
parent5b213178e72b6031c9ec790bf9fe784c66b397e3
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>
misc/cgo/testcshared/testdata/libgo2/dup2.go
misc/cgo/testcshared/testdata/libgo2/dup3.go
src/cmd/compile/internal/ssa/regalloc.go
src/cmd/dist/test.go
src/cmd/internal/sys/supported.go
src/cmd/link/internal/ld/config.go
src/runtime/rt0_linux_riscv64.s