]> Cypherpunks repositories - gostls13.git/commit
debug/pe: copy some consts from cmd/link/internal/ld
authorAlex Brainman <alex.brainman@gmail.com>
Mon, 9 Mar 2020 06:49:13 +0000 (17:49 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 10 Mar 2020 08:18:53 +0000 (08:18 +0000)
commitda07c59f246dad0119c486559bee89c86a8fc952
treed0a944bf95dbe9b0195a55ef5a95e6ce4c0edd37
parent38ad3baf0054e926136d8a2cfe6458f41b544841
debug/pe: copy some consts from cmd/link/internal/ld

This CL copies IMAGE_FILE_*, IMAGE_SUBSYSTEM_* and
IMAGE_DLLCHARACTERISTICS_* consts from cmd/link/internal/ld package.

The consts are also used in cmd/go and debug/pe tests. So avoid the
duplication.

The consts are defined in

https://docs.microsoft.com/en-us/windows/win32/debug/pe-format

and might be useful to other Go users.

The CL also adds some related consts.

RELNOTE=yes

Change-Id: Iaa868deaffc7c61051f2273397f3e7e101880a5b
Reviewed-on: https://go-review.googlesource.com/c/go/+/222637
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/go_test.go
src/cmd/link/internal/ld/pe.go
src/debug/pe/file_test.go
src/debug/pe/pe.go