]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: introduce and use windowsgui variable
authorAlex Brainman <alex.brainman@gmail.com>
Mon, 27 Mar 2017 04:58:14 +0000 (15:58 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Thu, 30 Mar 2017 22:51:19 +0000 (22:51 +0000)
commit4e3a1e409ae1bf74deb3c93745ad49b71311f4de
treefe836ebc1eb6d5e74ba1703962bcb8b05195bcea
parent94c62efe9cfb9b3d9f0934dcb6d40a0ae522cdff
cmd/link/internal/ld: introduce and use windowsgui variable

cmd/link -H flag is stored in variable of type
cmd/internal/obj.HeadType. The HeadType type from cmd/internal/obj
accepts Hwindows and Hwindowsgui values, but these values have
same meaning - build PE executable, except for 2 places in
cmd/link/internal/ld package.

This CL introduces code to store cmd/link "windowsgui" -H flag
in cmd/link/internal/ld, so cmd/internal/obj.Hwindowsgui can be
removed in the next CL.

This CL also includes 2 changes to code where distinction
between Hwindows and Hwindowsgui is important.

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