]> Cypherpunks repositories - gostls13.git/commit
cmd/link: make sure that runtime.epclntab lives in .text section
authorAlex Brainman <alex.brainman@gmail.com>
Tue, 2 May 2017 06:03:45 +0000 (16:03 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Thu, 18 May 2017 05:32:41 +0000 (05:32 +0000)
commitb5e964cc1cfb9307285c7f18f51beca8124f1b22
tree473b2500c8ece42deb12bda8edc7940594b2f497
parentf700f89b0be0eda0cda20427fbdae4ff1cb7e6a8
cmd/link: make sure that runtime.epclntab lives in .text section

Second attempt to fix #14710.

CL 35272 already tried to fix this issue. But CL 35272 assumed
that runtime.epclntab type is STEXT, while it is actually SRODATA.

This CL uses Symbol.Sect.Seg to determine if symbol is part
of Segtext or Segdata.

Fixes #14710

Change-Id: Ic6b6f657555c87a64d2bc36cc4c07ab0591d00c4
Reviewed-on: https://go-review.googlesource.com/42390
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/pe.go