]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link/internal/objfile: relocate loader to new package
authorThan McIntosh <thanm@google.com>
Mon, 14 Oct 2019 14:06:37 +0000 (10:06 -0400)
committerThan McIntosh <thanm@google.com>
Wed, 16 Oct 2019 13:24:55 +0000 (13:24 +0000)
commitc9470b04833332a8e2287364ccfa3e690f5a2047
tree4cffc6335ac5cc148e1ed873b823746e2fed514b
parent4a9b30cfc9b429971f03a2fbb0587aba994b3fec
[dev.link] cmd/link/internal/objfile: relocate loader to new package

Third change of several to update the loader API to reflect the final
consensus version of the loader API as described in Cherry's doc.
This piece:

   - move objfile.Loader into its own separate package, and update
     clients accordingly.

This includes a few minor cleanups, including converting a couple
of loader-related functions to methods, and privatizing some of the
loader methods such as ToGlobal/ToLocal.

Change-Id: Iae20585751a45491d8b19dcffc096aadae6bbfc6
Reviewed-on: https://go-review.googlesource.com/c/go/+/200998
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/dist/buildtool.go
src/cmd/link/internal/ld/deadcode2.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/link.go
src/cmd/link/internal/loader/loader.go [moved from src/cmd/link/internal/objfile/objfile2.go with 94% similarity]
src/cmd/link/internal/loadmacho/ldmacho.go