mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.link] cmd/link: remove duplicate handling of some specially named symbols
We do it on the symtab pass. Remove duplicate. Change-Id: I88cc8cd6e873749e0f6197f809aa812bca9dbbf9 Reviewed-on: https://go-review.googlesource.com/c/go/+/234493 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Jeremy Faller <jeremy@golang.org>
This commit is contained in:
parent
cf3bf9959c
commit
76a459b361
1 changed files with 0 additions and 5 deletions
|
|
@ -1981,11 +1981,6 @@ func (l *Loader) preloadSyms(r *oReader, kind int) {
|
|||
l.builtinSyms[bi] = gi
|
||||
}
|
||||
}
|
||||
if strings.HasPrefix(name, "go.string.") ||
|
||||
strings.HasPrefix(name, "gclocals·") ||
|
||||
strings.HasPrefix(name, "runtime.gcbits.") {
|
||||
l.SetAttrNotInSymbolTable(gi, true)
|
||||
}
|
||||
if a := osym.Align(); a != 0 {
|
||||
l.SetSymAlign(gi, int32(a))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue