[dev.link] cmd/link/internal/objfile: new loader method for reloc queries
[dev.link] cmd/link/internal/objfile: new loader method for reloc queries

Second 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:

 - define new loader.Relocs() method that returns a struct
   encapsulating a set of relocations on a global symbol

Old way of examining relocations:

  nreloc := loader.NReloc(someGlobalSymbolIndex)
  for i := 0; i < nreloc; i++ {
    tgtIdx := loader.RelocSym(someGlobalSymbolIndex, i))
    ... <do something with tgtIdx>
  }

New way of examining relocations:

  relocs := d.loader.Relocs(someGlobalSymbolIndex)
  for i := 0; i < relocs.Count; i++ {
    r := relocs.At(i).Sym
    ... <do something with r.Sym>
  }

Change-Id: I5bead1d729655ea13b3396647e53aafcd3e60f97
Reviewed-on: https://go-review.googlesource.com/c/go/+/200717
Run-TryBot: Than McIntosh <4b2922593166fc595a9b1a408f34f5d3817fe9d2@google.com>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Cherry Zhang <d62e63aa42ce272d7b6a5055d97e942b33a34679@google.com>

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