]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link: add capturehostobjs debugging flag
authorThan McIntosh <thanm@google.com>
Tue, 1 Nov 2022 15:08:00 +0000 (11:08 -0400)
committerThan McIntosh <thanm@google.com>
Sat, 19 Nov 2022 22:39:44 +0000 (22:39 +0000)
commitbda0235466a9e2e26332f9a2646678ccdc5edaa9
treec50d12b0d78e0b99a1edd86c65cd8ad7b5e06392
parent8205d83fe29e315eeb8f64f095a4d2594c9cd1c6
cmd/link: add capturehostobjs debugging flag

Add a new debugging flag "-capturehostobjs" that instructs the linker
to capture copies of all object files loaded in during the host object
loading portion of CGO internal linking. The intent is to make it
easier to analyze the objects after the fact (as opposed to having to
dig around inside archives, which can be a "find needle in haystack"
exercise).

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