mirror of https://github.com/golang/go.git
[dev.link] cmd/link: fix buglet in setupdynexp
This should restore deterministic order of dynexp, and fix Solaris build. Change-Id: Icb796babaa3238bff90fd8255ee9f023f2306c26 Reviewed-on: https://go-review.googlesource.com/c/go/+/225538 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
parent
ca18c37ee8
commit
c02cd04fe1
|
|
@ -620,7 +620,7 @@ func setupdynexp(ctxt *Link) {
|
|||
panic("dynexp entry not reachable")
|
||||
}
|
||||
}
|
||||
sort.Slice(dynexp, func(i, j int) bool {
|
||||
sort.Slice(d, func(i, j int) bool {
|
||||
return ctxt.loader.SymName(d[i]) < ctxt.loader.SymName(d[j])
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue