]> Cypherpunks repositories - gostls13.git/commit
debug/pe: .bss section must contain only zeros
authorAlex Brainman <alex.brainman@gmail.com>
Thu, 28 Apr 2016 05:19:11 +0000 (15:19 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Fri, 29 Apr 2016 02:58:42 +0000 (02:58 +0000)
commit694846a548f23cebb9b913999fa4fa6756e2c545
treecb88c5896ae4843f5f58f5ce3cc1b23dee8abc4a
parentd954f9c4d19bbe459ad4a6de95af47349da1d40b
debug/pe: .bss section must contain only zeros

.bss section has no data stored in PE file. But when .bss section data
is used by the linker it is assumed that its every byte is set to zero.
(*Section).Data returns garbage at this moment. Change (*Section).Data
so it returns slice filled with 0s.

Updates #15345

Change-Id: I1fa5138244a9447e1d59dec24178b1dd0fd4c5d7
Reviewed-on: https://go-review.googlesource.com/22544
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/debug/pe/file.go
src/debug/pe/file_test.go