]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link: resolve __CTOR_LIST__/__DTOR_LIST__ refs for PE
authorThan McIntosh <thanm@google.com>
Mon, 7 Feb 2022 20:30:34 +0000 (15:30 -0500)
committerThan McIntosh <thanm@google.com>
Thu, 31 Mar 2022 14:57:20 +0000 (14:57 +0000)
commitcdee8004ab5fa71d705979eaaee0948200256ed0
treefb2ed1d34c82c3b7b07b33f0f60c52d8291f125f
parent2ea9376266b71e8a0752b8b3663bbf5b9ed48c4d
cmd/link: resolve __CTOR_LIST__/__DTOR_LIST__ refs for PE

When doing an internal link on Windows, it's possible to see
unresolved references to the symbols "__CTOR_LIST__" and/or
"__DTOR_LIST__" (which are needed in some circumstances). If these are
still unresolved at the point where we're done reading host objects,
then synthesize dummy versions of them.

Updates #35006.

Change-Id: I408bf18499bba05752710cf5a41621123bd84a3b
Reviewed-on: https://go-review.googlesource.com/c/go/+/383836
Reviewed-by: Cherry Mui <cherryyz@google.com>
Trust: Than McIntosh <thanm@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/link/internal/ld/lib.go