]> Cypherpunks repositories - gostls13.git/commit
runtime: handle end PC in textAddr
authorCherry Mui <cherryyz@google.com>
Thu, 7 Oct 2021 20:26:29 +0000 (16:26 -0400)
committerCherry Mui <cherryyz@google.com>
Thu, 7 Oct 2021 22:19:51 +0000 (22:19 +0000)
commit6436f5c13d6a5ced6cd5f3873f83ebfae32cce36
treeb518468e6152051f1c13f2bbc1b9d8191dd0a62e
parentb69f823ece741f21d06591657f4e0a5b17d492e3
runtime: handle end PC in textAddr

As the func table contains the end marker of the text section, we
sometimes need to get that address from an offset. Currently
textAddr doesn't handle that address, as it is not within any
text section. Instead of letting the callers not call textAddr
with the end offset, just handle it more elegantly in textAddr.

For #48837.

Change-Id: I6e97e455f6cb66e9680a7aac6152ba6f4cda2e12
Reviewed-on: https://go-review.googlesource.com/c/go/+/354635
Trust: Cherry Mui <cherryyz@google.com>
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/runtime/symtab.go