https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83308
--- Comment #2 from Ian Lance Taylor <ian at airs dot com> --- I suspect you'll need other changes as well, such as a new file libgo/go/internal/syscall/unix/getrandom_linux_sh.go. For that matter you'll need to add sh to libgo/go/go/build/syslist.go and to match.sh and libgo/match.sh and libgo/testsuite/gotest.