aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/exec_linux.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2024-08-27 10:19:17 -0700
committerGopher Robot <gobot@golang.org>2024-08-30 19:17:50 +0000
commitc2098929056481d0dc09f5f42b8959f4db8878f2 (patch)
tree7d73193797dd442743fb33d99d0e73169a9be7c6 /src/syscall/exec_linux.go
parent6781ff226d8d2f9b49a61eaa8de40be68fea7037 (diff)
downloadgo-c2098929056481d0dc09f5f42b8959f4db8878f2.tar.xz
cmd/cgo: correct padding required by alignment
If the aligned offset isn't sufficient for the field offset, we were padding based on the aligned offset. We need to pad based on the original offset instead. Also set the Go alignment correctly for int128. We were defaulting to the maximum alignment, but since we translate int128 into an array of uint8 the correct Go alignment is 1. Fixes #69086 Change-Id: I23ce583335c81beac2ac51f7f9336ac97ccebf09 Reviewed-on: https://go-review.googlesource.com/c/go/+/608815 Reviewed-by: Damien Neil <dneil@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Auto-Submit: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/syscall/exec_linux.go')
0 files changed, 0 insertions, 0 deletions