]> Cypherpunks repositories - gostls13.git/commit
cmd/link: generate an error if the entry symbol cannot be found
authorJoel Sing <joel@sing.id.au>
Tue, 13 Sep 2022 09:28:58 +0000 (19:28 +1000)
committerGopher Robot <gobot@golang.org>
Tue, 13 Sep 2022 17:39:33 +0000 (17:39 +0000)
commit77420fa119643163f820be7752668a69100487d7
tree85d1c251b8621acadce244dcbe0fddb37f9791f5
parentf7396aaea0297a2e95b502a4075b0aed6efda89f
cmd/link: generate an error if the entry symbol cannot be found

If the entry symbol cannot be found (for example, a new port is being brought
up and no rt0 code has been provided), the linker will currently panic. Rather
than panicing, generate an error that aids in debugging:

missing entry symbol "_rt0_arm64_openbsd"

Change-Id: I9cc38eaab48f730d596ca7fa9e9e3d68250ae4d3
Reviewed-on: https://go-review.googlesource.com/c/go/+/430555
Auto-Submit: Jenny Rakoczy <jenny@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jenny Rakoczy <jenny@golang.org>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/link/internal/ld/lib.go