]> Cypherpunks repositories - gostls13.git/commit
doc/asm: document that assembly function must use short name
authorShenghou Ma <minux@golang.org>
Fri, 9 Jan 2015 02:43:47 +0000 (21:43 -0500)
committerMinux Ma <minux@golang.org>
Sun, 15 Feb 2015 00:07:11 +0000 (00:07 +0000)
commit7aa68756c5518e0fc2e2f65cab6b933c1c48534a
tree927b6dbf5f83a38178a3ef812e2b5be9657adca1
parent788f78ad08a4d8a66808eb4c197521223599b063
doc/asm: document that assembly function must use short name

e.g. ·Name instead of package·Name for automatic stack map to
be applied from its Go prototype.

The underlying reason is that liblink look up name with suffix
".args_stackmap" for the stackmap coming from its Go prototype,
but all the Go functions are named "".Name as this stage. Thus
an assembly function named package·Name will never find its
stackmap, which is named "".package.Name.args_stackmap.

Perhaps cmd/vet should give a warning for this.

Change-Id: I10d154a73ec969d574d20af877f747424350fbd1
Reviewed-on: https://go-review.googlesource.com/2588
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/asm.html