]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.link] cmd/link: remove duplicate handling of some specially named symbols
authorCherry Zhang <cherryyz@google.com>
Mon, 18 May 2020 22:51:38 +0000 (18:51 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 19 May 2020 14:54:16 +0000 (14:54 +0000)
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>
src/cmd/link/internal/loader/loader.go

index 26b17ce007be9a44dd18163cc7d9b748ef1d5049..b9e063288a8ae94413bb736665f3fafd736ad7b2 100644 (file)
@@ -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))
                }