]> Cypherpunks repositories - gostls13.git/commit
cmd/link: don't sort pclntab entries
authorKeith Randall <khr@golang.org>
Tue, 12 Apr 2022 20:34:42 +0000 (13:34 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 12 Apr 2022 23:13:38 +0000 (23:13 +0000)
commit1f97f960e76d1b722b7c4a0dd61e9b20ec6c2a37
tree5f65f57efdf9a6871d34fc1eaffa2ab1e884a802
parentfc1d4c11dfff3cad0389b32e9fa698a389807e3a
cmd/link: don't sort pclntab entries

They are already in a good order. The sort here does nothing, as
all the SymValues are 0. Sorting just arbitrarily permutes items
because everything is equal and the sort isn't stable.

Not sure why the ordering of these symbols matter. That ordering was
added in CL 243223.

Change-Id: Iee153394afdb39387701cfe0375bc022cf4bd489
Reviewed-on: https://go-review.googlesource.com/c/go/+/399540
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@google.com>
src/cmd/link/internal/ld/data.go