]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: don't emit args_stackmap for ABIInternal asm funcs
authorThan McIntosh <thanm@google.com>
Tue, 13 Apr 2021 17:49:55 +0000 (13:49 -0400)
committerThan McIntosh <thanm@google.com>
Wed, 14 Apr 2021 16:59:24 +0000 (16:59 +0000)
commit4480c822ba37ea3795fa4dbb56d13578d7961d88
treef265036f912bd77299979597b326842724e5b86e
parent25b25a9ed7fe8a543fd6c1f79c6a43d33f8eae68
cmd/internal/obj: don't emit args_stackmap for ABIInternal asm funcs

The compiler currently emits an "*.args_stackmap" symbol for all
bodyless functions, so that asm functions will have the proper stack
map. At the moment the code in the compiler that emits args_stackmap
assumes ABI0; to avoid misleading stackmaps, turn off args_stackmap
generation for non-ABI0 asm functions.

Updates #40724.

Change-Id: Ia5e3528d56da5fb107e799bd658e52496ba4a331
Reviewed-on: https://go-review.googlesource.com/c/go/+/309790
Trust: Than McIntosh <thanm@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/internal/obj/plist.go