]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link: improved host archive debug trace output
authorThan McIntosh <thanm@google.com>
Tue, 1 Nov 2022 14:27:18 +0000 (10:27 -0400)
committerThan McIntosh <thanm@google.com>
Sat, 19 Nov 2022 22:39:30 +0000 (22:39 +0000)
commit8205d83fe29e315eeb8f64f095a4d2594c9cd1c6
treea96d48c0d108e0371d042be015a9f50a1c09de17
parent58a2db181b7cb2d51e462b6ea9c0026bba520055
cmd/link: improved host archive debug trace output

When ctxt.Debugvlog > 1, produce additional trace output to describe
which object files are being pulled out of host archive libraries and
why they were pulled (e.g. which symbol had a reference to something
in a library). Intended to make it easier to debug problems with cgo
internal linking.

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