]> Cypherpunks repositories - gostls13.git/commit
runtime, cmd/link: store type descriptor length, not end
authorIan Lance Taylor <iant@golang.org>
Wed, 28 Jan 2026 01:34:46 +0000 (17:34 -0800)
committerCherry Mui <cherryyz@google.com>
Thu, 29 Jan 2026 16:14:53 +0000 (08:14 -0800)
commit11722941452d04aa0364a5c6b60acffaa2776b1c
tree5832bb8f46f2d47c768c209a9947ff2dcd8aee64
parent2bd7f15dd7423b6817939b199cd2c8032e3b79cc
runtime, cmd/link: store type descriptor length, not end

Storing the type descriptor length lets us save a relocation.
It also avoids a problem for Darwin dynamic linking.

For #6853
Fixes #77350

Change-Id: If5c94330fe10d75690325f3d0b0658060ef3eb2d
Reviewed-on: https://go-review.googlesource.com/c/go/+/739681
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@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/link.go
src/cmd/link/internal/ld/symtab.go
src/runtime/symtab.go
src/runtime/type.go