]> Cypherpunks repositories - gostls13.git/commit
cmd/link: improve error message and debugging
authorCherry Mui <cherryyz@google.com>
Wed, 15 Mar 2023 21:38:35 +0000 (17:38 -0400)
committerCherry Mui <cherryyz@google.com>
Tue, 21 Mar 2023 18:44:09 +0000 (18:44 +0000)
commitf24afeef9ae279dd62a22583248f49155defc928
treeb886ecd78162206fa31567ec98e75cb6f6663c8f
parent5f1a0320b92a60ee1283522135e00bff540ea115
cmd/link: improve error message and debugging

Correct an error message to missing section, not unreachable
symbol.

Also, under -v >= 2, dump symbol info on error for debugging.

Updates #58966.

Change-Id: I0f832c517d64f4b672b313a8b9be2d028744f945
Reviewed-on: https://go-review.googlesource.com/c/go/+/476735
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/go/testdata/script/link_external_undef.txt
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/main.go