]> Cypherpunks repositories - gostls13.git/commit
cmd/link: align covctrs symbol
authorKeith Randall <khr@golang.org>
Fri, 2 Jan 2026 21:42:00 +0000 (13:42 -0800)
committerKeith Randall <khr@golang.org>
Fri, 6 Feb 2026 23:22:38 +0000 (15:22 -0800)
commit4fe1203111eeda8a38af4f2a4208e4d4de720c0d
tree427f5d03924febf5ce2a68a6a60360644c533ea4
parentcbb37e310e2edd7148c8501567e190746e6d98d2
cmd/link: align covctrs symbol

If we start the covctrs blob at an odd alignment, then covctrs will
not be correctly aligned. Each individual entry is aligned properly,
but the start marker may be before any padding inserted to enforce
that alignment.

Fixes #58936

Change-Id: I802fbe40eacfa5a3c8c4864e078b0e078da956d5
Reviewed-on: https://go-review.googlesource.com/c/go/+/733740
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/cover/cover_test.go
src/cmd/cover/testdata/align.go [new file with mode: 0644]
src/cmd/cover/testdata/align_test.go [new file with mode: 0644]
src/cmd/link/internal/ld/data.go