commit | bd41f2d3cd82a37e85fcf44067ffd2f728554a3b | [log] [tgz] |
---|---|---|
author | Cherry Mui <cherryyz@google.com> | Fri Oct 08 19:55:17 2021 -0400 |
committer | Cherry Mui <cherryyz@google.com> | Mon Oct 11 16:05:38 2021 +0000 |
tree | cdf20907e3d16d0717c5d9261fc3e72224b8d6ab | |
parent | 2478b6f6d6c1da1085e958ece8b17255aa17be6e [diff] |
cmd/link: do not mark holes in functab With multiple text sections, there may be holes (non-Go code) in the PC range of Go code and covered by the functab. Previously, we use a linear search with actual PCs to find the functab entry. We need to use special entries to mark holes, so a PC in the hole can be distinguished from the previous function. Now, with the previous CL we find if the PC is in between of the sections upfront in textOff. There is no need to mark holes in the functab. Change-Id: I22ff27279422bfc855c2ca35ba0fdfb63234c113 Reviewed-on: https://go-review.googlesource.com/c/go/+/354874 Trust: Cherry Mui <cherryyz@google.com> Trust: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://golang.org/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.