]> Cypherpunks repositories - gostls13.git/commit
cmd/asm, cmd/link: use full objabi header
authorRuss Cox <rsc@golang.org>
Tue, 20 Apr 2021 18:08:58 +0000 (14:08 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 23 Apr 2021 21:42:54 +0000 (21:42 +0000)
commitcef3a442eaa1f86b81bb67fb881c5bb9e446fb13
tree7a8e1b304dc7f2d60bc4c5d67d1a3ad64b1b427d
parent19470dc535513dc824fe5c1dbec700329e7692dc
cmd/asm, cmd/link: use full objabi header

The cmd/link check of the objabi header was a bit lax because
historically the assembler has not included the full version string.
And the assembler didn't do that because it didn't have access to it:
that was buried inside the compiler.

But now that we have cmd/internal/objabi, all the tools have full
access to the expected string, and they can use it, which simplifies
the cmd/link consistency check.

Do that.

Change-Id: I33bd2f9d36c373cc3c32ff02ec6368365088b011
Reviewed-on: https://go-review.googlesource.com/c/go/+/312030
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/asm/main.go
src/cmd/link/internal/ld/lib.go