]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link: define correct complex types values for COFF symbols
authorqmuntal <quimmuntal@gmail.com>
Fri, 10 Mar 2023 15:19:58 +0000 (16:19 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Fri, 10 Mar 2023 22:47:16 +0000 (22:47 +0000)
commitd9c29ec6a54f929f4b0736db6b7598a4c2305e5e
tree1e84f2ef6c35a68e5c2a3ad9f347a9a7b2152773
parent53c91f9205e2b61d972ab1eaf5c9716aabe10306
cmd/link: define correct complex types values for COFF symbols

This CL updates IMAGE_SYM_DTYPE_FUNCTION and IMAGE_SYM_DTYPE_ARRAY
definition and usage so their value can be set to what's defined in
the Microsoft PE docs [1], fixing a long-standing TODO.

[1] https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#type-representation

Change-Id: I93c19eb78e8a770e8c72245fe9495647e2c5ae5b
Reviewed-on: https://go-review.googlesource.com/c/go/+/475355
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/link/internal/ld/pe.go
src/cmd/link/internal/loadpe/ldpe.go