mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/link: add support for external linking on linux/riscv64
Fixes #36739 Change-Id: Id7573b343786360c72524f9f27d2a8f08d379cf3 Reviewed-on: https://go-review.googlesource.com/c/go/+/243517 Trust: Joel Sing <joel@sing.id.au> Reviewed-by: Cherry Zhang <cherryyz@google.com> Reviewed-by: Than McIntosh <thanm@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
515e6a9b12
commit
15eaa870e1
8 changed files with 169 additions and 10 deletions
|
|
@ -1791,6 +1791,11 @@ func (l *Loader) SortSub(s Sym) Sym {
|
|||
return sl[0].s
|
||||
}
|
||||
|
||||
// SortSyms sorts a list of symbols by their value.
|
||||
func (l *Loader) SortSyms(ss []Sym) {
|
||||
sort.SliceStable(ss, func(i, j int) bool { return l.SymValue(ss[i]) < l.SymValue(ss[j]) })
|
||||
}
|
||||
|
||||
// Insure that reachable bitmap and its siblings have enough size.
|
||||
func (l *Loader) growAttrBitmaps(reqLen int) {
|
||||
if reqLen > l.attrReachable.Len() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue