]> Cypherpunks repositories - gostls13.git/commit
cmd/link: assume that runtime.epclntab lives in .text section
authorAlex Brainman <alex.brainman@gmail.com>
Tue, 17 Jan 2017 04:06:12 +0000 (15:06 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Thu, 2 Feb 2017 04:05:11 +0000 (04:05 +0000)
commit99e1e4f657c24769a2b42a4aa26c226b6e1db915
treea3f29ec504c77c87221219e638c1e88e7f23cd5c
parent08a3a7c08a04a0041db3ee6923d9dccb8aaf764d
cmd/link: assume that runtime.epclntab lives in .text section

Sometimes STEXT symbols point to the first byte of .data
section, instead of the end of .text section. But, while writing
pe symbol table, we should treat them as if they belong to the
.text section. Change pe symbol table records for these symbols.

Fixes #14710

Change-Id: I1356e61aa8fa37d590d7b1677b2bac214ad0ba4e
Reviewed-on: https://go-review.googlesource.com/35272
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/link/internal/ld/pe.go