HomeFreeBSD

Add two patches to lang/go14.

Description

Add two patches to lang/go14.

  • patch-syscall

    Use SYSCALL assembly instead of INT 0x80 for syscalls on amd64. Using INT 0x80 as syscall gate on amd64 is an accidential and undocumented feature of COMPAT_FREEBSD32. It allows to use 64-bit ABI, but run syscalls through i386 gate. Go used this "feature" to workaround a bug in FreeBSD 8, which is no longer relevant. The patch is exact e9ce76b0eca8fa95dddb90b0a72aadab58de2ffc from go repo. Now lang/go14 doesn't need COMPAT_FREEBSD32 to build and run.
  • patch-pipe2

    The pipe2 syscall is present in all supported versions of FreeBSD, but pipe was removed from FreeBSD 11. With the patch go14 can be built and run on a system without COMPAT_FREEBSD10.

Reviewed by: jlaffaye

Details

Provenance
glebiusAuthored on
Reviewer
jlaffaye
Parents
rP436615: - Update to 1.0.12
Branches
Unknown
Tags
Unknown