aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/compile/internal/reflectdata/reflect.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/cmd/compile/internal/reflectdata/reflect.go b/src/cmd/compile/internal/reflectdata/reflect.go
index 26b08ee08a..836174d0ce 100644
--- a/src/cmd/compile/internal/reflectdata/reflect.go
+++ b/src/cmd/compile/internal/reflectdata/reflect.go
@@ -1509,12 +1509,10 @@ func dgcsym(t *types.Type) (lsym *obj.LSym, useGCProg bool, ptrdata int64) {
func dgcptrmask(t *types.Type) *obj.LSym {
ptrmask := make([]byte, (types.PtrDataSize(t)/int64(types.PtrSize)+7)/8)
fillptrmask(t, ptrmask)
- p := fmt.Sprintf("gcbits.%x", ptrmask)
+ p := fmt.Sprintf("runtime.gcbits.%x", ptrmask)
- sym := ir.Pkgs.Runtime.Lookup(p)
- lsym := sym.Linksym()
- if !sym.Uniq() {
- sym.SetUniq(true)
+ lsym := base.Ctxt.Lookup(p)
+ if !lsym.OnList() {
for i, x := range ptrmask {
objw.Uint8(lsym, i, x)
}