cmd/compile: skip generating args_stackmap for "pulled" funcs
cmd/compile: skip generating args_stackmap for "pulled" funcs

In golang.org/cl/171464, we cleaned up generation of .stkobj linker
symbols, but we couldn't figure out why a similar cleanup to
.args_stackmap linker symbols caused problems.

The issue is that we only need/want to generate .args_stackmap for
functions that are implemented in assembly in the same package. When
"pulling" a function from another package via //go:linkname, we can
safely skip emitting .args_stackmap, because compiling that package
will have generated it, if necessary.

Fixes #31615.

Change-Id: If8680aa7dd5b4e8f268b6b032d746f1b8536c867
Reviewed-on: https://go-review.googlesource.com/c/go/+/223238
Run-TryBot: Matthew Dempsky <e56ac2c500064424afac424d4b5e53bd0570a731@google.com>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Cuong Manh Le <54b4457f1dff6823379654eb5867596497ba782f@gmail.com>
Reviewed-by: Keith Randall <8c99c3a9284e493be632950b84cd789d08ed3e9d@golang.org>

akutz/go,cloudflare/go,nawawi/go,CAFxX/go,golang/go,cloudflare/go,akutz/go,nawawi/go,nawawi/go,akutz/go,CAFxX/go,akutz/go,golang/go,akutz/go,golang/go,akutz/go,CAFxX/go,nawawi/go,CAFxX/go,golang/go,golang/go,cloudflare/go,CAFxX/go,golang/go,cloudflare/go,cloudflare/go,akutz/go,CAFxX/go,cloudflare/go,CAFxX/go,akutz/go,nawawi/go,cloudflare/go,nawawi/go,golang/go,CAFxX/go,nawawi/go,golang/go,nawawi/go,cloudflare/go