]> Cypherpunks repositories - gostls13.git/commit
cmd/link: add and use new SymKind SFirstUnallocated
authorIan Lance Taylor <iant@golang.org>
Tue, 28 Oct 2025 21:01:48 +0000 (14:01 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 5 Nov 2025 00:32:28 +0000 (16:32 -0800)
commit6914dd11c05678e78a50d6bd0c6f6789e00f6d6d
tree49607327650e2cf470f2c09cf3b71b0a585b6df8
parentf5f14262d0c0aae7d104ce22d05862276d16a002
cmd/link: add and use new SymKind SFirstUnallocated

The linker sources in several places used SXREF to mark the first
SymKind which is not allocated in memory. This is cryptic.
Instead use SFirstUnallocated, following the example of the
existing SFirstWritable.

Change-Id: If326ad63027402699094bcc49ef860db3772f82a
Reviewed-on: https://go-review.googlesource.com/c/go/+/715623
Reviewed-by: Than McIntosh <thanm@golang.org>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/macho.go
src/cmd/link/internal/ld/pe.go
src/cmd/link/internal/ld/symtab.go
src/cmd/link/internal/ld/xcoff.go
src/cmd/link/internal/sym/symkind.go
src/cmd/link/internal/sym/symkind_string.go