aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_netbsd_amd64.s
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2019-05-08 15:30:33 -0400
committerRuss Cox <rsc@golang.org>2019-05-09 21:13:26 +0000
commit924c161de4ad263142478f33113e53690b8d32c0 (patch)
treeb4647134205f1b461eb1e26a87e9dfce3f3c518a /src/runtime/sys_netbsd_amd64.s
parentb4a472b1c3b7ae48cf6128e5f0594439dc20d081 (diff)
downloadgo-924c161de4ad263142478f33113e53690b8d32c0.tar.gz
go-924c161de4ad263142478f33113e53690b8d32c0.zip
runtime: fix vet complaints for all freebsd, netbsd, openbsd
Working toward making the tree vet-safe instead of having so many exceptions in cmd/vet/all/whitelist. This CL makes "go vet -unsafeptr=false runtime" happy for these GOOSes, while keeping "GO_BUILDER_NAME=misc-vetall go tool dist test" happy too. For #31916. Change-Id: I63c4805bdd44b301072da66c77086940e2a2765e Reviewed-on: https://go-review.googlesource.com/c/go/+/176105 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/sys_netbsd_amd64.s')
-rw-r--r--src/runtime/sys_netbsd_amd64.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/sys_netbsd_amd64.s b/src/runtime/sys_netbsd_amd64.s
index 588d811287..77dc00dc60 100644
--- a/src/runtime/sys_netbsd_amd64.s
+++ b/src/runtime/sys_netbsd_amd64.s
@@ -258,7 +258,7 @@ TEXT runtime·sigprocmask(SB),NOSPLIT,$0
MOVL $0xf1, 0xf1 // crash
RET
-TEXT runtime·sigreturn_tramp(SB),NOSPLIT,$-8
+TEXT sigreturn_tramp<>(SB),NOSPLIT,$-8
MOVQ R15, DI // Load address of ucontext
MOVQ $SYS_setcontext, AX
SYSCALL
@@ -271,7 +271,7 @@ TEXT runtime·sigaction(SB),NOSPLIT,$-8
MOVQ new+8(FP), SI // arg 2 - nsa
MOVQ old+16(FP), DX // arg 3 - osa
// arg 4 - tramp
- LEAQ runtime·sigreturn_tramp(SB), R10
+ LEAQ sigreturn_tramp<>(SB), R10
MOVQ $2, R8 // arg 5 - vers
MOVL $SYS___sigaction_sigtramp, AX
SYSCALL