]> Cypherpunks repositories - gostls13.git/commit
cmd/ld, runtime: emit pointer maps for nosplits identified by the linker
authorCarl Shapiro <cshapiro@google.com>
Thu, 30 May 2013 00:16:57 +0000 (17:16 -0700)
committerCarl Shapiro <cshapiro@google.com>
Thu, 30 May 2013 00:16:57 +0000 (17:16 -0700)
commit037a1a9f3183e92a930e25ce66dba99df3786fb0
tree14bb9e132cfeed7c011310c000bd9f37298de652
parent5d081792b6990ecb34346573d351b8a4d530270e
cmd/ld, runtime: emit pointer maps for nosplits identified by the linker

A nosplits was assumed to have no argument information and no
pointer map.  However, nosplits created by the linker often
have both.  This change uses the pointer map size as an
alternate source of argument size when processing a nosplit.

In addition, the symbol table construction pointer map size
and argument size consistency check is strengthened.  If a
nptrs is greater than 0 it must be equal to the number of
argument words.

R=golang-dev, khr, khr
CC=golang-dev
https://golang.org/cl/9666047
src/cmd/gc/pgen.c
src/cmd/ld/lib.c
src/pkg/runtime/symtab.c