[dev.link] cmd/oldlink: decouple from goobj2 package
[dev.link] cmd/oldlink: decouple from goobj2 package

The new object file support in the old linker should not be used.
This is a minimal change that removes stuff from the old linker's
loader package, so that it decouples from the goobj2 package,
allowing the latter to evolve.

Keep the change local in the loader package, so most of the old
linker doesn't need to change. At this point I don't think we
want to make significant changes to the old linker.

Change-Id: I078c4cbb35dc4627c4b82f512a4aceec9b594925
Reviewed-on: https://go-review.googlesource.com/c/go/+/226800
Reviewed-by: Jeremy Faller <b3f594e10a9edcf5413cf1190121d45078c62290@golang.org>
Reviewed-by: Than McIntosh <4b2922593166fc595a9b1a408f34f5d3817fe9d2@google.com>

golang/go,CAFxX/go,cloudflare/go,cloudflare/go,akutz/go,golang/go,akutz/go,nawawi/go,cloudflare/go,CAFxX/go,golang/go,CAFxX/go,golang/go,akutz/go,CAFxX/go,golang/go,akutz/go,cloudflare/go,CAFxX/go,nawawi/go,cloudflare/go,CAFxX/go,golang/go,cloudflare/go,akutz/go,CAFxX/go,nawawi/go,cloudflare/go,nawawi/go,CAFxX/go,akutz/go,nawawi/go,nawawi/go,akutz/go,nawawi/go,golang/go,cloudflare/go,golang/go,akutz/go,nawawi/go