1
0
mirror of https://github.com/golang/go synced 2024-11-17 21:44:43 -07:00
go/src/debug
Alex Brainman da07c59f24 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>
2020-03-10 08:18:53 +00:00
..
dwarf debug/dwarf: call strings.EqualFold instead of calling Lower twice 2019-10-26 02:36:26 +00:00
elf all: fix a bunch of misspellings 2019-11-15 21:04:43 +00:00
gosym
macho all: base64-encode binaries that will cause Apple notarization to fail 2019-11-21 14:55:12 +00:00
pe debug/pe: copy some consts from cmd/link/internal/ld 2020-03-10 08:18:53 +00:00
plan9obj