]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/obj: allow more gcbits content addressability
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 5 Oct 2021 21:35:24 +0000 (14:35 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 6 Oct 2021 19:08:04 +0000 (19:08 +0000)
Follow-up to feedback on CL 352189.

Change-Id: I3d9fa87878a74a5a725812c7852050c02c433fa3
Reviewed-on: https://go-review.googlesource.com/c/go/+/354137
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/internal/obj/objfile.go

index 687cddc70cf7167638b5440860c24f0ca8814368..98af803880f2491361453555fcc77b603e4adc58 100644 (file)
@@ -409,9 +409,6 @@ func contentHashSection(s *LSym) byte {
        if s.IsPcdata() {
                return 'P'
        }
-       if strings.HasPrefix(name, "runtime.gcbits.") {
-               return 'G' // gcbits
-       }
        if strings.HasPrefix(name, "gcargs.") ||
                strings.HasPrefix(name, "gclocals.") ||
                strings.HasPrefix(name, "gclocals·") ||