]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: clean up some fields
authorCherry Zhang <cherryyz@google.com>
Wed, 5 Feb 2020 21:52:12 +0000 (16:52 -0500)
committerCherry Zhang <cherryyz@google.com>
Fri, 7 Feb 2020 18:33:37 +0000 (18:33 +0000)
commit06e2339dfee52361f5890c445c409b3731b1b9d2
tree031337eea6debad5bcf04c5356f55c9c5ccc5156
parent6cfd1bcadae200ee87a3b75b1d94ff39a789dce2
[dev.link] cmd/link: clean up some fields

With the new index mapping , we can clean up some fields.
Loader.max should always be equal to len(loader.objSyms) now. And
for external symbols we now give its "local index" as its index
in the payload array, so Relocs.extIdx is no longer useful.
Delete those fields.

Change-Id: If387ff9201ea0d347b954f651f5d4b4ae74937aa
Reviewed-on: https://go-review.googlesource.com/c/go/+/218478
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/link/internal/loader/loader.go
src/cmd/link/internal/loader/loader_test.go