]> Cypherpunks repositories - gostls13.git/commit
cmd/link, runtime: don't store text start in pcHeader
authorIan Lance Taylor <iant@golang.org>
Mon, 3 Nov 2025 04:04:57 +0000 (20:04 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 5 Nov 2025 00:38:08 +0000 (16:38 -0800)
commit0e1bd8b5f17e337df0ffb57af03419b96c695fe4
treeb21d1077f48a9ad29f8d59380777962bbac66a1a
parent7347b54727519eecf693e9c10c504dc28611cbbf
cmd/link, runtime: don't store text start in pcHeader

The textStart field requires a relocation, the only relocation in pclntab.
And nothing uses it. So remove it. Replace it with a zero,
which can itself be removed at some point in coordination with Delve.

For #76038

Change-Id: I35675c0868c5d957bb375e40b804c516ae0300ca
Reviewed-on: https://go-review.googlesource.com/c/go/+/717240
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/pcln.go
src/runtime/runtime2.go
src/runtime/symtab.go