diff options
| author | Ian Lance Taylor <iant@golang.org> | 2025-12-13 21:23:30 -0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-26 23:25:02 -0700 |
| commit | 291ee5d7de2a2d96c44c57084f6383235baab2a1 (patch) | |
| tree | 1bf48d81e1717e29866010788ccab2d727612451 /src/cmd/compile | |
| parent | 91d1a883768b8b38fe79eefd820063b2b593f23a (diff) | |
| download | go-291ee5d7de2a2d96c44c57084f6383235baab2a1.tar.xz | |
cmd/link: group gcmask symbols, move them to noptrbss
Also take them out of the symbol table.
A new symbol runtime.gcmask.* marks where they start in BSS, and can
be used to find them if anybody cares.
Also stop checking for gcprog symbols that we no longer define.
Change-Id: I4060d8e9350c20568f020172caacd0439337cd2d
Reviewed-on: https://go-review.googlesource.com/c/go/+/729880
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/cmd/compile')
| -rw-r--r-- | src/cmd/compile/internal/reflectdata/reflect.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/reflectdata/reflect.go b/src/cmd/compile/internal/reflectdata/reflect.go index 2b3515453a..1fca65469b 100644 --- a/src/cmd/compile/internal/reflectdata/reflect.go +++ b/src/cmd/compile/internal/reflectdata/reflect.go @@ -1314,8 +1314,8 @@ func dgcptrmaskOnDemand(t *types.Type, write bool) *obj.LSym { if write && !lsym.OnList() { // Note: contains a pointer, but a pointer to a // persistentalloc allocation. Starts with nil. - objw.Uintptr(lsym, 0, 0) - objw.Global(lsym, int32(types.PtrSize), obj.DUPOK|obj.NOPTR|obj.LOCAL) // TODO:bss? + // Allocated in BSS. + objw.Global(lsym, int32(types.PtrSize), obj.DUPOK|obj.NOPTR|obj.LOCAL) } return lsym } |
