gccgo compiled programs crash when printing syscall errors
steps to reproduce:
$ gccgo -x go - << EOF
package main
import (
"fmt"
"syscall"
)
func main() {
fmt.Println(syscall.Errno(1))
}
EOF
$ ./a.out
expected behavior:
"operation not permitted" is printed
actual behavior:
"SIGABRT: abort" and some other information is printed
additional information:
https://github.com/gcc-mirror/gcc/blob/master/libgo/go/syscall/errstr_glibc.go#L10
because linux == glibc, right?