From: Josh Bleecher Snyder Date: Tue, 5 Oct 2021 21:35:24 +0000 (-0700) Subject: cmd/internal/obj: allow more gcbits content addressability X-Git-Tag: go1.18beta1~1018 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0e13da8fae55d17c0c4ca64b1b8f259d633cee51;p=gostls13.git cmd/internal/obj: allow more gcbits content addressability Follow-up to feedback on CL 352189. Change-Id: I3d9fa87878a74a5a725812c7852050c02c433fa3 Reviewed-on: https://go-review.googlesource.com/c/go/+/354137 Trust: Josh Bleecher Snyder Run-TryBot: Josh Bleecher Snyder TryBot-Result: Go Bot Reviewed-by: Cherry Mui --- diff --git a/src/cmd/internal/obj/objfile.go b/src/cmd/internal/obj/objfile.go index 687cddc70c..98af803880 100644 --- a/src/cmd/internal/obj/objfile.go +++ b/src/cmd/internal/obj/objfile.go @@ -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·") ||