]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: new loader method for reading relocations in batch
authorThan McIntosh <thanm@google.com>
Wed, 16 Oct 2019 20:21:42 +0000 (16:21 -0400)
committerThan McIntosh <thanm@google.com>
Thu, 17 Oct 2019 20:08:33 +0000 (20:08 +0000)
commitb661547d94b89f6279710e4f4c58282b664e7b9c
tree0eae62a756d6d5b609d599b39e780953684b981f
parent6ecaae032520615a89c55c1ee31f0060feab0f4a
[dev.link] cmd/link: new loader method for reading relocations in batch

Add a new loader.Relocs method that reads all of the relocations for a
symbol into a slice. Handy in cases where the client knows in advance
that it wants to visit all the relocations on a symbol (as opposed to
just one or two).

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