• Austin Clements's avatar
    runtime: correct ABI information for all functions · af1bfe0a
    Austin Clements authored
    There are three cases where we don't currently have the visibility to
    get the ABIs of runtime symbols right, which this CL fixes:
    
    1. For Go functions referenced from non-Go code in other packages.
       This is runtime.morestackc (which is referenced from function
       prologues) and a few syscall symbols. For these we need to generate
       ABI0 wrappers, so this CL adds dummy calls in the assembly code to
       force wrapper generation. There are many other cross-package
       references to runtime and runtime/internal/atomic, but these are
       handled specially by cmd/go.
    
    2. For calls generated by the compiler to runtime Go functions, there
       are a few symbols that aren't declared in builtins.go because we've
       never needed their type information before. Now we at least need
       their ABI information, so these are added to builtins.go.
    
    3. For calls generated by the compiler to runtime assembly functions,
       the compiler is going to assume the internal ABI is available, so
       we add Go stubs to the runtime to trigger wrapper generation. For
       these we're probably going to want to provide internal ABI
       definitions directly in the assembly for performance, but for now
       the ABIs are the same so it doesn't matter.
    
    For #27539.
    
    Change-Id: I9c224e7408d2ef4dd9b0e4c9d7e962ddfe111245
    Reviewed-on: https://go-review.googlesource.com/c/146822
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarKeith Randall <khr@golang.org>
    Reviewed-by: 's avatarMichael Knyszek <mknyszek@google.com>
    af1bfe0a
Name
Last commit
Last update
..
js Loading commit data...
asm9_unix1_amd64.s Loading commit data...
asm9_unix2_amd64.s Loading commit data...
asm_darwin_386.s Loading commit data...
asm_darwin_amd64.s Loading commit data...
asm_darwin_arm.s Loading commit data...
asm_darwin_arm64.s Loading commit data...
asm_freebsd_arm.s Loading commit data...
asm_linux_386.s Loading commit data...
asm_linux_amd64.s Loading commit data...
asm_linux_arm.s Loading commit data...
asm_linux_arm64.s Loading commit data...
asm_linux_mips64x.s Loading commit data...
asm_linux_mipsx.s Loading commit data...
asm_linux_ppc64x.s Loading commit data...
asm_linux_s390x.s Loading commit data...
asm_nacl_386.s Loading commit data...
asm_nacl_amd64p32.s Loading commit data...
asm_nacl_arm.s Loading commit data...
asm_netbsd_arm.s Loading commit data...
asm_openbsd_arm.s Loading commit data...
asm_plan9_386.s Loading commit data...
asm_plan9_amd64.s Loading commit data...
asm_plan9_arm.s Loading commit data...
asm_solaris_amd64.s Loading commit data...
asm_unix_386.s Loading commit data...
asm_unix_amd64.s Loading commit data...
asm_windows.s Loading commit data...
bpf_bsd.go Loading commit data...
bpf_darwin.go Loading commit data...
const_plan9.go Loading commit data...
creds_test.go Loading commit data...
dir_plan9.go Loading commit data...
dirent.go Loading commit data...
dirent_bsd_test.go Loading commit data...
dll_windows.go Loading commit data...
endian_big.go Loading commit data...
endian_little.go Loading commit data...
env_plan9.go Loading commit data...
env_unix.go Loading commit data...
env_windows.go Loading commit data...
errors_plan9.go Loading commit data...
exec_aix_test.go Loading commit data...
exec_bsd.go Loading commit data...
exec_darwin.go Loading commit data...
exec_libc.go Loading commit data...
exec_linux.go Loading commit data...
exec_linux_test.go Loading commit data...
exec_plan9.go Loading commit data...
exec_solaris_test.go Loading commit data...
exec_unix.go Loading commit data...
exec_unix_test.go Loading commit data...
exec_windows.go Loading commit data...
export_freebsd_test.go Loading commit data...
export_linux_test.go Loading commit data...
export_test.go Loading commit data...
export_unix_test.go Loading commit data...
fd_nacl.go Loading commit data...
flock.go Loading commit data...
flock_aix.go Loading commit data...
flock_darwin.go Loading commit data...
flock_linux_32bit.go Loading commit data...
forkpipe.go Loading commit data...
forkpipe2.go Loading commit data...
fs_js.go Loading commit data...
fs_nacl.go Loading commit data...
lsf_linux.go Loading commit data...
mkall.sh Loading commit data...
mkasm_darwin.go Loading commit data...
mkerrors.sh Loading commit data...
mkpost.go Loading commit data...
mksyscall.pl Loading commit data...
mksyscall_libc.pl Loading commit data...
mksyscall_windows.go Loading commit data...
mksysctl_openbsd.pl Loading commit data...
mksysnum_darwin.pl Loading commit data...
mksysnum_dragonfly.pl Loading commit data...
mksysnum_freebsd.pl Loading commit data...
mksysnum_linux.pl Loading commit data...
mksysnum_netbsd.pl Loading commit data...
mksysnum_openbsd.pl Loading commit data...
mksysnum_plan9.sh Loading commit data...
mmap_unix_test.go Loading commit data...
msan.go Loading commit data...
msan0.go Loading commit data...
net.go Loading commit data...
net_js.go Loading commit data...
net_nacl.go Loading commit data...
netlink_linux.go Loading commit data...
pwd_plan9.go Loading commit data...
route_bsd.go Loading commit data...
route_darwin.go Loading commit data...
route_dragonfly.go Loading commit data...
route_freebsd.go Loading commit data...
route_freebsd_32bit.go Loading commit data...
route_freebsd_64bit.go Loading commit data...
route_netbsd.go Loading commit data...
route_openbsd.go Loading commit data...
security_windows.go Loading commit data...
setuidgid_32_linux.go Loading commit data...
setuidgid_linux.go Loading commit data...
sockcmsg_linux.go Loading commit data...
sockcmsg_unix.go Loading commit data...
str.go Loading commit data...
syscall.go Loading commit data...
syscall_aix.go Loading commit data...
syscall_aix_ppc64.go Loading commit data...
syscall_bsd.go Loading commit data...
syscall_bsd_test.go Loading commit data...
syscall_darwin.go Loading commit data...
syscall_darwin_386.go Loading commit data...
syscall_darwin_amd64.go Loading commit data...
syscall_darwin_arm.go Loading commit data...
syscall_darwin_arm64.go Loading commit data...
syscall_dragonfly.go Loading commit data...
syscall_dragonfly_amd64.go Loading commit data...
syscall_freebsd.go Loading commit data...
syscall_freebsd_386.go Loading commit data...
syscall_freebsd_amd64.go Loading commit data...
syscall_freebsd_arm.go Loading commit data...
syscall_freebsd_test.go Loading commit data...
syscall_getwd_bsd.go Loading commit data...
syscall_js.go Loading commit data...
syscall_linux.go Loading commit data...
syscall_linux_386.go Loading commit data...
syscall_linux_amd64.go Loading commit data...
syscall_linux_arm.go Loading commit data...
syscall_linux_arm64.go Loading commit data...
syscall_linux_mips64x.go Loading commit data...
syscall_linux_mipsx.go Loading commit data...
syscall_linux_ppc64x.go Loading commit data...
syscall_linux_s390x.go Loading commit data...
syscall_linux_test.go Loading commit data...
syscall_nacl.go Loading commit data...
syscall_nacl_386.go Loading commit data...
syscall_nacl_amd64p32.go Loading commit data...
syscall_nacl_arm.go Loading commit data...
syscall_netbsd.go Loading commit data...
syscall_netbsd_386.go Loading commit data...
syscall_netbsd_amd64.go Loading commit data...
syscall_netbsd_arm.go Loading commit data...
syscall_openbsd.go Loading commit data...
syscall_openbsd_386.go Loading commit data...
syscall_openbsd_amd64.go Loading commit data...
syscall_openbsd_arm.go Loading commit data...
syscall_plan9.go Loading commit data...
syscall_plan9_test.go Loading commit data...
syscall_solaris.go Loading commit data...
syscall_solaris_amd64.go Loading commit data...
syscall_test.go Loading commit data...
syscall_unix.go Loading commit data...
syscall_unix_test.go Loading commit data...
syscall_windows.go Loading commit data...
syscall_windows_386.go Loading commit data...
syscall_windows_amd64.go Loading commit data...
syscall_windows_test.go Loading commit data...
tables_nacljs.go Loading commit data...
time_nacl_386.s Loading commit data...
time_nacl_amd64p32.s Loading commit data...
time_nacl_arm.s Loading commit data...
timestruct.go Loading commit data...
types_aix.go Loading commit data...
types_darwin.go Loading commit data...
types_dragonfly.go Loading commit data...
types_freebsd.go Loading commit data...
types_linux.go Loading commit data...
types_netbsd.go Loading commit data...
types_openbsd.go Loading commit data...
types_solaris.go Loading commit data...
types_windows.go Loading commit data...
types_windows_386.go Loading commit data...
types_windows_amd64.go Loading commit data...
types_windows_arm.go Loading commit data...
unzip_nacl.go Loading commit data...
zerrors_aix_ppc64.go Loading commit data...
zerrors_darwin_386.go Loading commit data...
zerrors_darwin_amd64.go Loading commit data...
zerrors_darwin_arm.go Loading commit data...
zerrors_darwin_arm64.go Loading commit data...
zerrors_dragonfly_amd64.go Loading commit data...
zerrors_freebsd_386.go Loading commit data...
zerrors_freebsd_amd64.go Loading commit data...
zerrors_freebsd_arm.go Loading commit data...
zerrors_linux_386.go Loading commit data...
zerrors_linux_amd64.go Loading commit data...
zerrors_linux_arm.go Loading commit data...
zerrors_linux_arm64.go Loading commit data...
zerrors_linux_mips.go Loading commit data...
zerrors_linux_mips64.go Loading commit data...
zerrors_linux_mips64le.go Loading commit data...
zerrors_linux_mipsle.go Loading commit data...
zerrors_linux_ppc64.go Loading commit data...
zerrors_linux_ppc64le.go Loading commit data...
zerrors_linux_s390x.go Loading commit data...
zerrors_netbsd_386.go Loading commit data...
zerrors_netbsd_amd64.go Loading commit data...
zerrors_netbsd_arm.go Loading commit data...
zerrors_openbsd_386.go Loading commit data...
zerrors_openbsd_amd64.go Loading commit data...
zerrors_openbsd_arm.go Loading commit data...
zerrors_solaris_amd64.go Loading commit data...
zerrors_windows.go Loading commit data...
zerrors_windows_386.go Loading commit data...
zerrors_windows_amd64.go Loading commit data...
zsyscall_aix_ppc64.go Loading commit data...
zsyscall_darwin_386.go Loading commit data...
zsyscall_darwin_386.s Loading commit data...
zsyscall_darwin_amd64.go Loading commit data...
zsyscall_darwin_amd64.s Loading commit data...
zsyscall_darwin_arm.go Loading commit data...
zsyscall_darwin_arm.s Loading commit data...
zsyscall_darwin_arm64.go Loading commit data...
zsyscall_darwin_arm64.s Loading commit data...
zsyscall_dragonfly_amd64.go Loading commit data...
zsyscall_freebsd_386.go Loading commit data...
zsyscall_freebsd_amd64.go Loading commit data...
zsyscall_freebsd_arm.go Loading commit data...
zsyscall_linux_386.go Loading commit data...
zsyscall_linux_amd64.go Loading commit data...
zsyscall_linux_arm.go Loading commit data...
zsyscall_linux_arm64.go Loading commit data...
zsyscall_linux_mips.go Loading commit data...
zsyscall_linux_mips64.go Loading commit data...
zsyscall_linux_mips64le.go Loading commit data...
zsyscall_linux_mipsle.go Loading commit data...
zsyscall_linux_ppc64.go Loading commit data...
zsyscall_linux_ppc64le.go Loading commit data...
zsyscall_linux_s390x.go Loading commit data...
zsyscall_nacl_386.go Loading commit data...
zsyscall_nacl_amd64p32.go Loading commit data...
zsyscall_nacl_arm.go Loading commit data...
zsyscall_netbsd_386.go Loading commit data...
zsyscall_netbsd_amd64.go Loading commit data...
zsyscall_netbsd_arm.go Loading commit data...
zsyscall_openbsd_386.go Loading commit data...
zsyscall_openbsd_amd64.go Loading commit data...
zsyscall_openbsd_arm.go Loading commit data...
zsyscall_plan9_386.go Loading commit data...
zsyscall_plan9_amd64.go Loading commit data...
zsyscall_plan9_arm.go Loading commit data...
zsyscall_solaris_amd64.go Loading commit data...
zsyscall_windows.go Loading commit data...
zsysctl_openbsd.go Loading commit data...
zsysnum_darwin_386.go Loading commit data...
zsysnum_darwin_amd64.go Loading commit data...
zsysnum_darwin_arm.go Loading commit data...
zsysnum_darwin_arm64.go Loading commit data...
zsysnum_dragonfly_amd64.go Loading commit data...
zsysnum_freebsd_386.go Loading commit data...
zsysnum_freebsd_amd64.go Loading commit data...
zsysnum_freebsd_arm.go Loading commit data...
zsysnum_linux_386.go Loading commit data...
zsysnum_linux_amd64.go Loading commit data...
zsysnum_linux_arm.go Loading commit data...
zsysnum_linux_arm64.go Loading commit data...
zsysnum_linux_mips.go Loading commit data...
zsysnum_linux_mips64.go Loading commit data...
zsysnum_linux_mips64le.go Loading commit data...
zsysnum_linux_mipsle.go Loading commit data...
zsysnum_linux_ppc64.go Loading commit data...
zsysnum_linux_ppc64le.go Loading commit data...
zsysnum_linux_s390x.go Loading commit data...
zsysnum_netbsd_386.go Loading commit data...
zsysnum_netbsd_amd64.go Loading commit data...
zsysnum_netbsd_arm.go Loading commit data...
zsysnum_openbsd_386.go Loading commit data...
zsysnum_openbsd_amd64.go Loading commit data...
zsysnum_openbsd_arm.go Loading commit data...
zsysnum_plan9.go Loading commit data...
zsysnum_solaris_amd64.go Loading commit data...
zsysnum_windows_386.go Loading commit data...
zsysnum_windows_amd64.go Loading commit data...
ztypes_aix_ppc64.go Loading commit data...
ztypes_darwin_386.go Loading commit data...
ztypes_darwin_amd64.go Loading commit data...
ztypes_darwin_arm.go Loading commit data...
ztypes_darwin_arm64.go Loading commit data...
ztypes_dragonfly_amd64.go Loading commit data...
ztypes_freebsd_386.go Loading commit data...
ztypes_freebsd_amd64.go Loading commit data...
ztypes_freebsd_arm.go Loading commit data...
ztypes_linux_386.go Loading commit data...
ztypes_linux_amd64.go Loading commit data...
ztypes_linux_arm.go Loading commit data...
ztypes_linux_arm64.go Loading commit data...
ztypes_linux_mips.go Loading commit data...
ztypes_linux_mips64.go Loading commit data...
ztypes_linux_mips64le.go Loading commit data...
ztypes_linux_mipsle.go Loading commit data...
ztypes_linux_ppc64.go Loading commit data...
ztypes_linux_ppc64le.go Loading commit data...
ztypes_linux_s390x.go Loading commit data...
ztypes_netbsd_386.go Loading commit data...
ztypes_netbsd_amd64.go Loading commit data...
ztypes_netbsd_arm.go Loading commit data...
ztypes_openbsd_386.go Loading commit data...
ztypes_openbsd_amd64.go Loading commit data...
ztypes_openbsd_arm.go Loading commit data...
ztypes_solaris_amd64.go Loading commit data...