aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2021-01-19 11:02:10 -0500
committerCherry Zhang <cherryyz@google.com>2021-01-19 17:33:33 +0000
commitccb2e906882e45fe2d22c31049185208adbfb62e (patch)
tree1e4870e69cbc7a01081669414ae091978d0a79b5 /test
parentca5774a5a533ce26ed64010fcc98f258e5bb0cc1 (diff)
downloadgo-ccb2e906882e45fe2d22c31049185208adbfb62e.tar.gz
go-ccb2e906882e45fe2d22c31049185208adbfb62e.zip
cmd/link: exit before Asmb2 if error
If there are already errors emitted, don't run the Asmb2 pass and just exit. At the point of Asmb2 relocations are already resolved and errors should have been reported, if any. Asmb2 is unlikely to emit additional useful users errors. Instead, the invalid input may cause inconsistencies and crash the linker, or it may emit some internal errors which are more confusing than helpful. Exit on error before Asmb2. Fixes #43748. Change-Id: Icf6e27f2eef5b6259e921ec0e64bebad5dd805f8 Reviewed-on: https://go-review.googlesource.com/c/go/+/284576 Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions