]> Cypherpunks repositories - gostls13.git/commit
cmd/link: record missing pcdata tables correctly
authorRuss Cox <rsc@golang.org>
Mon, 29 Jun 2015 02:26:35 +0000 (22:26 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 29 Jun 2015 16:07:14 +0000 (16:07 +0000)
commit434e0bc0a06afa124a6d9167fa51b5d02ff4db14
tree9db3ce743641d0cc4ba811f89058be45fd4d9d4e
parent1b917484a892d0f22d26143a21581cb51d509d44
cmd/link: record missing pcdata tables correctly

The old code was recording the current table output offset,
so the table from the next function would be used instead of
the runtime realizing that there was no table at all.

Add debug constant in runtime to check this for every function
at startup. It's too expensive to do that by default, but we can
do the last five functions. The end of the table is usually where
the C symbols end up, so that's where the problems typically are.

Fixes #10747.
Fixes #11396.

Change-Id: I13592e78017969fc22979fa902e19e1b151d41b1
Reviewed-on: https://go-review.googlesource.com/11657
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
src/cmd/link/internal/ld/pcln.go
src/runtime/symtab.go