[dev.link] cmd/link: simplify asmb2

Move lots of the binary-file format specific pieces into their
appropriate places. Similarly rescope some variables to just ld.

Change-Id: I74bc6d8aba58f5ac86e6579be1fcb356c4636825
Reviewed-on: https://go-review.googlesource.com/c/go/+/235278
Run-TryBot: Jeremy Faller <jeremy@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
This commit is contained in:
Jeremy Faller 2020-05-26 14:59:40 -04:00
parent e1c0b751b5
commit c5a9b3d63a
6 changed files with 79 additions and 61 deletions

View file

@ -258,10 +258,10 @@ type Arch struct {
var (
thearch Arch
Lcsize int32
lcSize int32
rpath Rpath
Spsize int32
Symsize int32
spSize int32
symSize int32
)
const (