mirror of https://github.com/golang/go.git
cmd/link: remove unnecessary attrReachable test
This commit is contained in:
parent
aebc0b473e
commit
0b2f3cb3a8
|
|
@ -2538,7 +2538,7 @@ func (l *Loader) AssignTextSymbolOrder(libs []*sym.Library, intlibs []bool, exts
|
||||||
for i, list := range lists {
|
for i, list := range lists {
|
||||||
for _, s := range list {
|
for _, s := range list {
|
||||||
sym := Sym(s)
|
sym := Sym(s)
|
||||||
if l.attrReachable.Has(sym) && !assignedToUnit.Has(sym) {
|
if !assignedToUnit.Has(sym) {
|
||||||
textp = append(textp, sym)
|
textp = append(textp, sym)
|
||||||
unit := l.SymUnit(sym)
|
unit := l.SymUnit(sym)
|
||||||
if unit != nil {
|
if unit != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue