]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: minor perf tweak for PropagateLoaderChangesToSymbols
authorThan McIntosh <thanm@google.com>
Fri, 20 Mar 2020 14:34:58 +0000 (10:34 -0400)
committerThan McIntosh <thanm@google.com>
Fri, 20 Mar 2020 20:31:35 +0000 (20:31 +0000)
commit7055f01e125eb4ad40b84a757a8748c0b88854f4
tree62e8db0678895323f25130613a98fba285331963
parent0dff5b0b9e08157e817cfd95ad240ea2509e6644
[dev.link] cmd/link: minor perf tweak for PropagateLoaderChangesToSymbols

When fixing up relocations in PropagateLoaderChangesToSymbols, don't
reallocate the target sym.Symbol relocation slice if it already has
the desired size (this gets rid of some unneeded allocations).

Change-Id: I05287772c18cab861c2df805fa9497103fb00dcc
Reviewed-on: https://go-review.googlesource.com/c/go/+/224420
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/link/internal/loader/loader.go