From 10ed9b6ed5ffadf16151d98a188a4242515b62e9 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Wed, 28 Jan 2026 15:39:46 -0800 Subject: [PATCH] runtime: use smaller max align for arm32 Maybe fixes a dashboard build failure for linux/arm32 casued by CL 724261. This value comes from cmd/link/internal/arm/l.go (and in general, maxAlign in cmd/link/internal/$ARCH/.go). Change-Id: I4d02cd41072da1b6ad6c7405044bd7788626b013 Reviewed-on: https://go-review.googlesource.com/c/go/+/740101 LUCI-TryBot-Result: Go LUCI Reviewed-by: Keith Randall Reviewed-by: Ian Lance Taylor Auto-Submit: Keith Randall Reviewed-by: Dmitri Shuralyov --- src/runtime/type.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/runtime/type.go b/src/runtime/type.go index c5262ccd0f..78018fd9a8 100644 --- a/src/runtime/type.go +++ b/src/runtime/type.go @@ -526,7 +526,11 @@ func moduleTypelinks(md *moduledata) []*_type { for td < etypedesc { // TODO: The fact that type descriptors are aligned to // 0x20 does not make sense. - td = alignUp(td, 0x20) + if GOARCH == "arm" { + td = alignUp(td, 0x8) + } else { + td = alignUp(td, 0x20) + } // This code must match the data structures built by // cmd/compile/internal/reflectdata/reflect.go:writeType. -- 2.52.0