https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110297
--- Comment #3 from Andreas Schwab <sch...@linux-m68k.org> --- The problem is in the magic comment in libgo/go/runtine/mem_gccgo.go: //extern mmap func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off _libgo_off_t_type) unsafe.Pointer This needs to be changed to mmap64.