Commit 78f0de10 authored by Maya Rashish's avatar Maya Rashish Committed by Benny Siegert

runtime: move linux specific code into linux specific files

Allows us to stop whitelisting this error on many OS/arch combinations

XXX I'm not sure I am running vet correctly, and testing all platforms right.

Change-Id: I29f548bd5f4a63bd13c4d0667d4209c75c886fd9
GitHub-Last-Rev: 52f6ff4a6b986e86f8b26c3d19da7707d39f1664
GitHub-Pull-Request: golang/go#31583
Reviewed-on: https://go-review.googlesource.com/c/go/+/173157
Run-TryBot: Benny Siegert <bsiegert@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBenny Siegert <bsiegert@gmail.com>
parent a1c481d8
// darwin/arm-specific vet whitelist. See readme.txt for details.
// Ok.
runtime/asm_arm.s: [arm] sigreturn: function sigreturn missing Go declaration
// darwin/arm64-specific vet whitelist. See readme.txt for details.
runtime/asm_arm64.s: [arm64] sigreturn: function sigreturn missing Go declaration
// freebsd/arm-specific vet whitelist. See readme.txt for details. // freebsd/arm-specific vet whitelist. See readme.txt for details.
runtime/asm_arm.s: [arm] sigreturn: function sigreturn missing Go declaration
runtime/sys_freebsd_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration runtime/sys_freebsd_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration
// nacl/arm-specific vet whitelist. See readme.txt for details. // nacl/arm-specific vet whitelist. See readme.txt for details.
runtime/asm_arm.s: [arm] sigreturn: function sigreturn missing Go declaration
runtime/sys_nacl_arm.s: [arm] nacl_clock_gettime: function nacl_clock_gettime missing Go declaration runtime/sys_nacl_arm.s: [arm] nacl_clock_gettime: function nacl_clock_gettime missing Go declaration
runtime/sys_nacl_arm.s: [arm] nacl_sysinfo: function nacl_sysinfo missing Go declaration runtime/sys_nacl_arm.s: [arm] nacl_sysinfo: function nacl_sysinfo missing Go declaration
runtime/sys_nacl_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration runtime/sys_nacl_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration
// netbsd/arm-specific vet whitelist. See readme.txt for details. // netbsd/arm-specific vet whitelist. See readme.txt for details.
runtime/asm_arm.s: [arm] sigreturn: function sigreturn missing Go declaration
runtime/sys_netbsd_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration runtime/sys_netbsd_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration
syscall/asm_netbsd_arm.s: [arm] Syscall9: unknown variable trap; offset 0 is num+0(FP) syscall/asm_netbsd_arm.s: [arm] Syscall9: unknown variable trap; offset 0 is num+0(FP)
// openbsd/arm-specific vet whitelist. See readme.txt for details. // openbsd/arm-specific vet whitelist. See readme.txt for details.
runtime/asm_arm.s: [arm] sigreturn: function sigreturn missing Go declaration
runtime/sys_openbsd_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration runtime/sys_openbsd_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration
// plan9/arm-specific vet whitelist. See readme.txt for details. // plan9/arm-specific vet whitelist. See readme.txt for details.
runtime/asm_arm.s: [arm] sigreturn: function sigreturn missing Go declaration
runtime/sys_plan9_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration runtime/sys_plan9_arm.s: [arm] read_tls_fallback: function read_tls_fallback missing Go declaration
...@@ -891,9 +891,6 @@ TEXT runtime·usplitR0(SB),NOSPLIT,$0 ...@@ -891,9 +891,6 @@ TEXT runtime·usplitR0(SB),NOSPLIT,$0
SUB R1, R3, R1 SUB R1, R3, R1
RET RET
TEXT runtime·sigreturn(SB),NOSPLIT,$0-0
RET
#ifndef GOOS_nacl #ifndef GOOS_nacl
// This is called from .init_array and follows the platform, not Go, ABI. // This is called from .init_array and follows the platform, not Go, ABI.
TEXT runtime·addmoduledata(SB),NOSPLIT,$0-8 TEXT runtime·addmoduledata(SB),NOSPLIT,$0-8
......
...@@ -1128,9 +1128,6 @@ TEXT runtime·goexit(SB),NOSPLIT|NOFRAME|TOPFRAME,$0-0 ...@@ -1128,9 +1128,6 @@ TEXT runtime·goexit(SB),NOSPLIT|NOFRAME|TOPFRAME,$0-0
MOVD R0, R0 // NOP MOVD R0, R0 // NOP
BL runtime·goexit1(SB) // does not return BL runtime·goexit1(SB) // does not return
TEXT runtime·sigreturn(SB),NOSPLIT,$0-0
RET
// This is called from .init_array and follows the platform, not Go, ABI. // This is called from .init_array and follows the platform, not Go, ABI.
TEXT runtime·addmoduledata(SB),NOSPLIT,$0-0 TEXT runtime·addmoduledata(SB),NOSPLIT,$0-0
SUB $0x10, RSP SUB $0x10, RSP
......
...@@ -606,3 +606,6 @@ TEXT runtime·sbrk0(SB),NOSPLIT,$0-4 ...@@ -606,3 +606,6 @@ TEXT runtime·sbrk0(SB),NOSPLIT,$0-4
SWI $0 SWI $0
MOVW R0, ret+0(FP) MOVW R0, ret+0(FP)
RET RET
TEXT runtime·sigreturn(SB),NOSPLIT,$0-0
RET
...@@ -599,3 +599,6 @@ TEXT runtime·sbrk0(SB),NOSPLIT,$0-8 ...@@ -599,3 +599,6 @@ TEXT runtime·sbrk0(SB),NOSPLIT,$0-8
SVC SVC
MOVD R0, ret+0(FP) MOVD R0, ret+0(FP)
RET RET
TEXT runtime·sigreturn(SB),NOSPLIT,$0-0
RET
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment