It is not clear what series this is on or what packages you're using.
That said, the 1.14.3-2ubuntu1 packages available for groovy include
external linking support and support -buildmode=pie:
$ dpkg -l | grep golang
ii golang-1.14 1.14.3-2ubuntu1 all
Go programming language compiler - metapackage
ii golang-1.14-doc 1.14.3-2ubuntu1 all
Go programming language - documentation
ii golang-1.14-go 1.14.3-2ubuntu1
riscv64 Go programming language compiler, linker, compiled stdlib
ii golang-1.14-src 1.14.3-2ubuntu1
riscv64 Go programming language - source files
$ go version
go version go1.14.3 linux/riscv64
$ go build -ldflags=-buildmode=pie
$ file cgo
cgo: ELF 64-bit LSB shared object, UCB RISC-V, version 1 (SYSV), dynamically
linked, interpreter /lib/ld-linux-riscv64-lp64d.so.1,
BuildID[sha1]=d8469e80723306c9291b7b117c91b5f7297b49de, for GNU/Linux 4.15.0,
not stripped
$ ./cgo
Hi from cgo on linux/riscv64!
If you're still running into issues, please provide full details of the
problem and how it can be reproduced.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1881417
Title:
-buildmode=pie not supported on riscv64
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-defaults/+bug/1881417/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs