]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: align PE .text section to 32-byte when external linking
authorShenghou Ma <minux@golang.org>
Tue, 1 Sep 2015 23:58:31 +0000 (19:58 -0400)
committerMinux Ma <minux@golang.org>
Sun, 6 Sep 2015 01:14:18 +0000 (01:14 +0000)
commitd4f13093729cac869fbec326222f7fd68e989998
tree05240a78646e69812e58cef1e5c9907441bbe88d
parentc20b8e145a471f242fba18f30dc830dac71ce50e
cmd/link/internal/ld: align PE .text section to 32-byte when external linking

Some symbols, for example, masks requires 16-byte alignment, and
they are placed in the text section. Before this change, the text
section is only aligned to 4-byte, and it's making masks unaligned.

Fixes #12415.

Change-Id: I7767778d1b4f7d3e74c2719a02848350782a4160
Reviewed-on: https://go-review.googlesource.com/14166
Run-TryBot: Minux Ma <minux@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
(cherry picked from commit 821e124c24c2b2d753be22a04a3b20b7bf579627)
Reviewed-on: https://go-review.googlesource.com/14279
src/cmd/link/internal/ld/pe.go