]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: process cgo_import_static before host object loading
authorCherry Zhang <cherryyz@google.com>
Thu, 31 Oct 2019 23:35:55 +0000 (19:35 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 1 Nov 2019 03:40:20 +0000 (03:40 +0000)
commit4a43a5079184f9a4cff355fbf8c6d3145e253bb2
tree3d014f2da068b9fe6230d676f739bfc330b74d9c
parent396a9b98bac38dce31085146f8c713fbe3c0c664
[dev.link] cmd/link: process cgo_import_static before host object loading

In internal linking mode, we need to process cgo_import_static
directives before loading host objects, because the directive is
to tell the host object loader how to deal with imported symbols.

This should fix linking with old object files. I think there
needs some similar logic for new object files, but I'll leave
that for later.

Change-Id: Icaa286de626ea1876086dbdd015047084c92caf9
Reviewed-on: https://go-review.googlesource.com/c/go/+/204697
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/lib.go